Skip to content

Commit

Permalink
changed the string represenation function
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaPandeyCN committed Jun 26, 2024
1 parent 4d934ea commit aa291d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyneuroml/swc/LoadSWC.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, node_id, type_id, x, y, z, radius, parent_id):
except (ValueError, TypeError) as e:
raise ValueError(f"Invalid data types in SWC line: {e}")

def to_string(self):
def __str__(self) -> str:
"""
Returns a human-readable string representation of the node.
Expand Down

0 comments on commit aa291d8

Please sign in to comment.