Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: A couple of minor changes to eyetracking Calibrations #11872

Merged
merged 5 commits into from
Aug 10, 2023

Conversation

scott-huberty
Copy link
Contributor

@scott-huberty scott-huberty commented Aug 9, 2023

Was hoping to squeeze this in before 1.5 release, i.e. when the Calibrations class will be part of a stable version of MNE:

Here are 2 changes:

  1. Allow a Calibration to have a negative onset time. While initially creating the (EDIT: Calibrations) PR, we agreed that it should be okay for a calibration to have a negative onset time (i.e. for calibrations that were conducted before the task/recording started). However, on the main branch, these calibration onsets were forced to be 0 (mea culpa).
  2. for the plot method of the Calibrations class, there is a title parameter. However, since we added an axes parameter so that users can pass in a custom axes and make whatever customizations they want, I don't think this method needs to have a specific title parameter anymore, and I've removed it.

We previously agreed that calibrations should be allowed to have a negative onset time, for calibrations that were collected before recording started. However we did not implement this in practice. This commit fixes that.
Since we allow the user to pass a custom axes object to the plot method,

We dont actually need to have a title parameter. Users can simply pass
in a custom axes object and set the title as they wish.
Since we no longer force  the onset of a calibration before recording start to be 0,
update the test to reflect the true negative number calibration onset
@scott-huberty scott-huberty changed the title Read eyelink cal fix FIX: A couple of minor changes to eytracking Calibrations Aug 9, 2023
@scott-huberty scott-huberty changed the title FIX: A couple of minor changes to eytracking Calibrations FIX: A couple of minor changes to eyetracking Calibrations Aug 9, 2023
@scott-huberty
Copy link
Contributor Author

Hmm I haven't hit this problem before. Seems like my CircleCI authentication isn't working? Which is causing some of the tests to fail:

https://app.circleci.com/pipelines/github/mne-tools/mne-python/19987/workflows/4802eeea-f864-4bc2-93b9-317972248a7d/jobs/56764?invite=true#step-0-14

Accidentally duplicated an assert statement in test_calibration. The test should be checking the onset of the first calibraition for each  eye, not the left eye twice.
@larsoner larsoner added this to the 1.5 milestone Aug 9, 2023
@larsoner larsoner merged commit baf1ad5 into mne-tools:main Aug 10, 2023
@larsoner
Copy link
Member

Thanks @scott-huberty !

snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants