Skip to content

Commit

Permalink
Peeler edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
cwindolf committed Jan 16, 2024
1 parent 1040761 commit db92eef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dartsort/peel/peel_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,10 @@ def process_chunk(self, chunk_start_samples, return_residual=False):

# add times in seconds
segment = self.recording._recording_segments[0]
chunk_result["times_seconds"] = segment.sample_index_to_time(
chunk_result["times_samples"]
)
if peel_result["n_spikes"]:
chunk_result["times_seconds"] = segment.sample_index_to_time(
chunk_result["times_samples"]
)
return chunk_result

def gather_chunk_result(
Expand Down

0 comments on commit db92eef

Please sign in to comment.