Skip to content

Commit

Permalink
[#35] Quick and dirty str and repr
Browse files Browse the repository at this point in the history
  • Loading branch information
machallboyd committed May 13, 2022
1 parent faedcc1 commit 575da18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mappymatch/matchers/lcss/lcss.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def __init__(
self.random_cuts = random_cuts
self.distance_threshold = distance_threshold

def __repr__(self):
return(repr(self.__dict__))

def __str__(self):
return(str(self.__dict__))

def match_trace(self, trace: Trace) -> MatchResult:
def _join_segment(a: TrajectorySegment, b: TrajectorySegment):
new_traces = a.trace + b.trace
Expand Down

0 comments on commit 575da18

Please sign in to comment.