Skip to content

Commit

Permalink
Apply remaining suggestions from Mathieu
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Scheltienne <[email protected]>
  • Loading branch information
scott-huberty and mscheltienne committed Mar 19, 2024
1 parent 0c54803 commit 6b2ea46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,7 @@ @inproceedings{StrohmeierEtAl2015
@article{Wierda2012,
title = "Pupil dilation deconvolution reveals the dynamics of attention
at high temporal resolution",
doi = {10.1073/pnas.1201858109},
author = "Wierda, Stefan M and van Rijn, Hedderik and Taatgen, Niels A and
Martens, Sander",
journal = "Proceedings of the National Academy of Sciences",
Expand Down
4 changes: 1 addition & 3 deletions mne/preprocessing/eyetracking/_pupillometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def pupil_zscores(epochs, baseline=(None, 0)):
_validate_type(epochs, BaseEpochs, "epochs")
_validate_type(baseline, (tuple, list, np.ndarray), "baseline")

pupil_picks = _picks_to_idx(epochs.info, "pupil", allow_empty=True)
if not pupil_picks.any():
raise RuntimeError("no pupil data")
pupil_picks = _picks_to_idx(epochs.info, "pupil", allow_empty=False)
if len(baseline) != 2:
raise RuntimeError("baseline must be a 2-element list")
baseline = np.array(baseline)
Expand Down

0 comments on commit 6b2ea46

Please sign in to comment.