Skip to content

Commit

Permalink
fix input parse, brainRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanharvey1 committed Jan 20, 2025
1 parent 3d33dc9 commit f560cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lfp/detect_delta_waves.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ function detect_delta_waves(varargin)
addParameter(p, 'channel', [], @isnumeric);
addParameter(p, 'peak_to_trough_ratio', 3, @isnumeric); % legacy name for "threshold"
addParameter(p, 'threshold', 3, @isnumeric);
addParameter(p, 'brainRegion', {'PFC', 'MEC', 'LEC', 'EC', 'ILA', 'PL', 'Cortex', 'CTX'}, @(x) any(iscell(x), iscchar(x)));
addParameter(p, 'brainRegion', {'PFC', 'MEC', 'LEC', 'EC', 'ILA', 'PL', 'Cortex', 'CTX'}, ...
@(x) ischar(x) || isstring(x) || (iscell(x) && all(cellfun(@(y) ischar(y) || isstring(y), x))));
addParameter(p, 'manual_pick_channel', false, @islogical);
addParameter(p, 'use_sleep_score_delta_channel', false, @islogical);
addParameter(p, 'EMG_threshold', 0.6, @isnumeric);
Expand Down

0 comments on commit f560cfe

Please sign in to comment.