Skip to content

Commit 497f0cc

Browse files
committed
print coords not coords_list
1 parent fe259fd commit 497f0cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mappymatch/constructs/trace.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __len__(self):
4949
def __str__(self):
5050
output_lines = [
5151
"Mappymatch Trace object",
52-
f'coords_list: {self.coords_list if hasattr(self, "coords_list") else None}',
52+
f'coords: {self.coords if hasattr(self, "coords") else None}',
5353
f'frame: {self._frame if hasattr(self, "_frame") else None}',
5454
]
5555
return "\n".join(output_lines)
@@ -301,3 +301,8 @@ def to_geojson(self, file: Union[str, Path]):
301301
file: the file to write to
302302
"""
303303
self._frame.to_file(file, driver="GeoJSON")
304+
305+
306+
class InheritTrace(Trace):
307+
def __init__(self):
308+
pass

0 commit comments

Comments
 (0)