-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Trouble with measurement dates when anonymizing or writing epochs data #13154
Comments
Ugh yes this looks like a bug. Would you be up for trying a fix? If not I can look hopefully soon. Would also be good to trim this down to an example that just used |
I tried to repro locally and didn't reproduce (not a huge surprise) but I did run into a different problem:
might make sense to fix both at the same time |
The problem with the anonymization comes from the annotations:
Is there a way to delete annotations? |
Maybe we just need to change the check to:
|
that does fix the error with epochs.anonymize()
|
|
I found the problem with saving the epochs file: my info.get("helium_info") has no measurement date: But meas_info.py, l. 2883 asks to write it without checking whether it exists: Adding a line to check solves the error:
If you want, I can make a PR with this one and the change from above, but I don't oversee whether there is a bigger issue. Also, these are the first recordings from our new MEG machine, should we look into the acquisition settings to make sure the helium measurement date is set? |
Yes PR welcome! Not sure about whether or not the system should have a meas date for the helium info. It's also possible it was never supposed to have it. But in any case I think MNE should preserve whatever is in the file so checking to see if |
Description of the problem
Hello,
Not sure if both problems are related, but I am getting errors about measurement dates when trying to anonymize or write epochs data that was created with the mne-bids-pipeline in the last months. I would rather avoid having to run the pipeline again, as I just wanted to quickly take an example dataset, anonymize it, and use it for teaching.
1) When trying to anonymize the data, I get the following error:
2) When trying to save the data without anonymization, I get this one:
Steps to reproduce
Link to data
I can share the date privately, as I cannot anonymize them.
Expected results
No errors.
Actual results
Errors, see above.
The data is saved, but not complete.
Additional information
Version: '1.9.0'
The text was updated successfully, but these errors were encountered: