Skip to content

Commit

Permalink
Update mne/preprocessing/stim.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Mainak Jas <[email protected]>
  • Loading branch information
fmamashli and jasmainak authored Oct 4, 2019
1 parent 7833a11 commit f471002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/preprocessing/stim.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def fix_stim_artifact(inst, events=None, event_id=None, tmin=0.,
s_start = int(np.ceil(inst.info['sfreq'] * tmin))
s_end = int(np.ceil(inst.info['sfreq'] * tmax))
if (mode == "constant") and (baseline is None):
raise ValueError('Please provide the baseline')
raise ValueError('Please provide the baseline for mode='constant'')
if mode == 'constant':
b_start = int(np.ceil(inst.info['sfreq'] * baseline[0]))
b_end = int(np.ceil(inst.info['sfreq'] * baseline[1]))
Expand Down

0 comments on commit f471002

Please sign in to comment.