Skip to content

Commit

Permalink
Update remove_artifacts.py to change string literals (probably used m…
Browse files Browse the repository at this point in the history
…istakenly) to actual variables.
  • Loading branch information
munahaf authored Sep 20, 2023
1 parent c362aac commit 2d1a33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/preprocessing/remove_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(
assert l in artifacts.keys(), f"Artefacts are provided but label {l} has no value!"
else:
assert (
"ms_before" is not None and "ms_after" is not None
ms_before is not None and ms_after is not None
), f"ms_before/after should not be None for mode {mode}"
sorting = NumpySorting.from_times_labels(list_triggers, list_labels, recording.get_sampling_frequency())
sorting = sorting.save()
Expand Down

0 comments on commit 2d1a33a

Please sign in to comment.