Skip to content

Commit c471c21

Browse files
committed
Fix string formatting, remove breakpoint.
1 parent 60c8e5e commit c471c21

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/spikeinterface/generation/session_displacement_generator.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,22 +367,21 @@ def _check_generate_session_displacement_arguments(
367367

368368
shifts_are_2d = [len(shift) == 2 for shift in recording_shifts]
369369
if not all(shifts_are_2d):
370-
raise ValueError("Each record entry for `recording_shifts` must have " "two elements, the x and y shift.")
370+
raise ValueError("Each record entry for `recording_shifts` must have two elements, the x and y shift.")
371371

372372
if recording_amplitude_scalings is not None:
373373

374374
keys = recording_amplitude_scalings.keys()
375375
if not "method" in keys or not "scalings" in keys:
376-
raise ValueError("`recording_amplitude_scalings` must be a dict " "with keys `method` and `scalings`.")
376+
raise ValueError("`recording_amplitude_scalings` must be a dict with keys `method` and `scalings`.")
377377

378378
allowed_methods = ["by_passed_order", "by_amplitude_and_firing_rate", "by_firing_rate"]
379379
if not recording_amplitude_scalings["method"] in allowed_methods:
380380
raise ValueError(f"`recording_amplitude_scalings` must be one of {allowed_methods}")
381381

382382
rec_scalings = recording_amplitude_scalings["scalings"]
383383
if not len(rec_scalings) == expected_num_recs:
384-
breakpoint()
385-
raise ValueError("`recording_amplitude_scalings` 'scalings' " "must have one array per recording.")
384+
raise ValueError("`recording_amplitude_scalings` 'scalings' must have one array per recording.")
386385

387386
if not all([len(scale) == num_units for scale in rec_scalings]):
388387
raise ValueError(

0 commit comments

Comments
 (0)