Skip to content

Commit

Permalink
stylistic edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Bach committed Jan 25, 2025
1 parent c26064d commit 046389d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/pspm_pupil_pp.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

% when batch editor has default settings
if ~isfield(options,'custom_settings')
[lsts, default_settings] = pspm_pupil_pp_options(); % so now warings are displayed
[lsts, default_settings] = pspm_pupil_pp_options(); % so no warnings are displayed
else
[lsts, default_settings] = pspm_pupil_pp_options(options.custom_settings);
end
Expand Down
26 changes: 13 additions & 13 deletions src/pspm_pupil_pp_options.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,27 @@
% └───────keepFilterData:If true, intermediate filter data will be stored.
% Set to false to save memory and improve plotting
% performance. (Default: true)
%
% // Final data smoothing
% // The below computation is performed:
% // [LpFilt_B, LpFilt_A] = butter(LpFilt_order, ...
% // 2*LpFilt_cutoffFreq/interp_upsamplingFreq );
%
% ┌───────────────valid
% ├interp_upsamplingFreq:The upsampling frequency used to generate the smooth
% │ signal. (Default: 1000 Hz)
% ├─────────────LpFilt_B:The numerator coefficients of the digital Butterworth
% │ low-pass filter.
% ├─────────────LpFilt_A:The denominator coefficients of the digital
% │ Butterworth low-pass filter.
% ├───────interp_maxGap: Maximum gap in the used (valid) raw samples to
% │ interpolate over. Sections that were interpolated
% │ over distances larger than this value will be set
% │ to NaN. (Default: 250 ms)
%
% │ // For final data smoothing, the below computation is performed:
% │ // [LpFilt_B, LpFilt_A] = butter(LpFilt_order, ...
% │ // 2*LpFilt_cutoffFreq/interp_upsamplingFreq );
%
% ├────LpFilt_cutoffFreq:The cutoff frequency (in Hz) for the low-pass Butterworth filter
% │ that is applied to the upsampled signal. (Default: 4 Hz)
% └─────────LpFilt_order:The order of the Butterworth filter used on the
% upsampled signal. (Default: 4)
% ├─────────LpFilt_order:The order of the Butterworth filter used on the
% │ upsampled signal. (Default: 4)
% ├─────────────LpFilt_B:The numerator coefficients of the digital Butterworth
% │ low-pass filter. Automatically computed.
% └─────────────LpFilt_A:The denominator coefficients of the digital
% Butterworth low-pass filter. Automatically computed.
%
%
% ● History
Expand Down Expand Up @@ -162,7 +162,7 @@
[custom_settings.raw.residualsFilter_lowpassB , custom_settings.raw.residualsFilter_lowpassA] ...
= butter(1 , custom_settings.raw.residualsFilter_lowpassCF/(custom_settings.raw.residualsFilter_interpFs/2) );
else
warning('Missing required fields in custom_settings.raw: Default filter coefficients will be use.'); % change
warning('Missing required fields in custom_settings.raw: Default filter coefficients will be used.'); % change
end

reqFieldsValid = {'LpFilt_cutoffFreq','interp_upsamplingFreq','LpFilt_order'};
Expand All @@ -171,7 +171,7 @@
[custom_settings.valid.LpFilt_B, custom_settings.valid.LpFilt_A] = butter(custom_settings.valid.LpFilt_order, ...
2*custom_settings.valid.LpFilt_cutoffFreq/custom_settings.valid.interp_upsamplingFreq );
else
warning('Missing required fields in custom_settings.valid: Default filter coefficients will be use.'); % change
warning('Missing required fields in custom_settings.valid: Default filter coefficients will be used.'); % change
end

end
Expand Down

0 comments on commit 046389d

Please sign in to comment.