Skip to content

Commit 1faafaa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 01adece commit 1faafaa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/spikeinterface/sortingcomponents/motion/motion_interpolation.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,13 @@ def __init__(
386386
interpolation_time_bin_centers_s = motion.temporal_bins_s
387387
interpolation_time_bin_edges_s = motion.temporal_bin_edges_s
388388
else:
389-
interpolation_time_bin_centers_s, interpolation_time_bin_edges_s = ensure_time_bins( # TODO: something is very wrong here with the typing
390-
interpolation_time_bin_centers_s, interpolation_time_bin_edges_s
389+
interpolation_time_bin_centers_s, interpolation_time_bin_edges_s = (
390+
ensure_time_bins( # TODO: something is very wrong here with the typing
391+
interpolation_time_bin_centers_s, interpolation_time_bin_edges_s
392+
)
391393
)
392394

393-
assert len(recording._recording_segments) == 1, "multi segment not supported" #??
395+
assert len(recording._recording_segments) == 1, "multi segment not supported" # ??
394396

395397
for segment_index, parent_segment in enumerate(recording._recording_segments):
396398
# finish the per-segment part of the time bin logic
@@ -405,8 +407,8 @@ def __init__(
405407
)
406408
assert segment_interpolation_time_bin_edges_s.shape == (segment_interpolation_time_bins_s.shape[0] + 1,)
407409
else:
408-
segment_interpolation_time_bins_s = interpolation_time_bin_centers_s # [segment_index]
409-
segment_interpolation_time_bin_edges_s = interpolation_time_bin_edges_s # [segment_index]
410+
segment_interpolation_time_bins_s = interpolation_time_bin_centers_s # [segment_index]
411+
segment_interpolation_time_bin_edges_s = interpolation_time_bin_edges_s # [segment_index]
410412

411413
rec_segment = InterpolateMotionRecordingSegment(
412414
parent_segment,

0 commit comments

Comments
 (0)