Skip to content

Commit 9b7e836

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3e42928 commit 9b7e836

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/spikeinterface/core/tests/test_time_handling.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def test_shift_times_after_load(self, request, save_format, tmp_path):
380380
"""
381381
Shift times on a recording loaded from disk as a read-only np.memmap
382382
(binary folder) and a lazy zarr.Array (zarr). Neither supports an in-place
383-
`+=`, so `shift_times` must shift a writable copy.
383+
`+=`, so `shift_times` must shift a writable copy.
384384
"""
385385
_, times_recording, all_times = self._get_fixture_data(request, "time_vector_recording")
386386

@@ -395,12 +395,10 @@ def test_shift_times_after_load(self, request, save_format, tmp_path):
395395
assert not (isinstance(tv, np.ndarray) and tv.flags.writeable)
396396

397397
shift = 123.456
398-
loaded.shift_times(shift)
398+
loaded.shift_times(shift)
399399

400400
for idx in range(loaded.get_num_segments()):
401-
assert np.allclose(
402-
loaded.get_times(segment_index=idx), all_times[idx] + shift, rtol=0, atol=1e-8
403-
)
401+
assert np.allclose(loaded.get_times(segment_index=idx), all_times[idx] + shift, rtol=0, atol=1e-8)
404402

405403
def _store_all_times(self, recording):
406404
"""

0 commit comments

Comments
 (0)