File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/spikeinterface/generation Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -367,22 +367,21 @@ def _check_generate_session_displacement_arguments(
367
367
368
368
shifts_are_2d = [len (shift ) == 2 for shift in recording_shifts ]
369
369
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." )
371
371
372
372
if recording_amplitude_scalings is not None :
373
373
374
374
keys = recording_amplitude_scalings .keys ()
375
375
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`." )
377
377
378
378
allowed_methods = ["by_passed_order" , "by_amplitude_and_firing_rate" , "by_firing_rate" ]
379
379
if not recording_amplitude_scalings ["method" ] in allowed_methods :
380
380
raise ValueError (f"`recording_amplitude_scalings` must be one of { allowed_methods } " )
381
381
382
382
rec_scalings = recording_amplitude_scalings ["scalings" ]
383
383
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." )
386
385
387
386
if not all ([len (scale ) == num_units for scale in rec_scalings ]):
388
387
raise ValueError (
You can’t perform that action at this time.
0 commit comments