Skip to content

Commit 955db76

Browse files
committed
Fix deprecation in CLI in case of high-pass filter
1 parent 4225da9 commit 955db76

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/MEArec/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ def gen_recordings(params, **kwargs):
405405
if kwargs["filt_cutoff"] is not None:
406406
if isinstance(kwargs["filt_cutoff"], tuple):
407407
kwargs["filt_cutoff"] = list(kwargs["filt_cutoff"])
408+
# for high-pass filter, make a scalar
409+
if len(kwargs["filt_cutoff"]) == 1:
410+
kwargs["filt_cutoff"] = kwargs["filt_cutoff"][0]
408411
params_dict["recordings"]["filter_cutoff"] = kwargs["filt_cutoff"]
409412
if kwargs["filt_order"] is not None:
410413
params_dict["recordings"]["filt_order"] = kwargs["filt_order"]

0 commit comments

Comments
 (0)