Skip to content

Commit

Permalink
Fix deprecation in CLI in case of high-pass filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Sep 22, 2023
1 parent 4225da9 commit 955db76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MEArec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ def gen_recordings(params, **kwargs):
if kwargs["filt_cutoff"] is not None:
if isinstance(kwargs["filt_cutoff"], tuple):
kwargs["filt_cutoff"] = list(kwargs["filt_cutoff"])
# for high-pass filter, make a scalar
if len(kwargs["filt_cutoff"]) == 1:
kwargs["filt_cutoff"] = kwargs["filt_cutoff"][0]
params_dict["recordings"]["filter_cutoff"] = kwargs["filt_cutoff"]
if kwargs["filt_order"] is not None:
params_dict["recordings"]["filt_order"] = kwargs["filt_order"]
Expand Down

0 comments on commit 955db76

Please sign in to comment.