Skip to content

Commit

Permalink
Fixes analysis spreadsheet timepoint marking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak committed Jul 21, 2018
1 parent 8d9ae16 commit 5ec4a79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meap/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,11 @@ def mark_similar(self,unmarked_beat, smoothing_window_len=21,search_window=SEARC
bnum, self.name)
unmarked_point.needs_attention = True
unmarked_point.set_index(t_ind)
index_array = getattr(self.physiodata, self.name+"_indices", None)
assert index_array[unmarked_beat.id] == t_ind

# If this timepoint is tracked by beat id,
if unmarked_beat.id is not None:
index_array = getattr(self.physiodata, self.name+"_indices", None)
assert index_array[unmarked_beat.id] == t_ind
return True

def set_time(self,time):
Expand Down

0 comments on commit 5ec4a79

Please sign in to comment.