-
Notifications
You must be signed in to change notification settings - Fork 98
add curryreader as full dep #1475
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1475 +/- ##
=======================================
Coverage 96.94% 96.94%
=======================================
Files 43 43
Lines 10077 10087 +10
=======================================
+ Hits 9769 9779 +10
Misses 308 308 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
hmm, openneuro is having a bad day, so fetching https://openneuro.org/datasets/ds002778 is failing (causing the |
sappelhoff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Dan, please also add new dependencies here: https://github.com/mne-tools/mne-bids/blob/main/doc/install.rst
Other than that, +1 to merge when green
|
Opened OpenNeuroOrg/openneuro#3626, TBD whether they have some bug they can fix or openneuro-py needs to be adjusted |
|
@drammock pushed a commit to document |
|
yeah I'm working on the uV issue right now |
|
progress so far: old curry reader code and new code do slightly different things. With https://github.com/mne-tools/mne-testing-data/blob/master/curry/test_bdf_stim_channel%20Curry%208.cdt:
the difference in I think the behavior of the new reader is correct w/r/t
Therefore, I think (?) it is MNE-BIDS that is incorrect here, in that it is writing the |
|
hi @drammock - just to confim - cals are defined as: and then set directly via: (before loading any data) |
i also looked into the mne-bids code, and yes - this seems to be the case. |
Thanks for checking @dominikwelke. Looking at which seems to say that when writing to BV format, units are always converted from V to uV. Therefore, when MNE-BIDS is converting data to BV, the units given in |
|
edit for correctness/posterity: mne-bids isn't using mne's export functionality, it is calling pybv directly. But it does the same thing that MNE-Python does (always write V data as uV): Lines 1275 to 1283 in 1e0a96e
|
|
also for completeness - so while the BIDS dataset is flawed, any results generated down the line should be fine. |
01d2868 to
1fc6533
Compare
larsoner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two little things I noticed / ideas
mne_bids/tests/test_write.py
Outdated
| pytest.importorskip("pybv", PYBV_VERSION) | ||
| pytest.importorskip("eeglabio", EEGLABIO_VERSION) | ||
| pytest.importorskip("curryreader", CURRYREADER_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't/shouldn't all of these be in a conditional like if fmt == "EEGLAB": pytest.importorskip("eeglabio") and similar? Worth making here if it's a trivial change (and it works) but okay to leave if you aren't motivated to investigate or it doesn't trivially work @drammock
33d6bbf to
12ceeb4
Compare
drammock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok @larsoner I've rebased to isolate the semantically unrelated changes into different commits; should be fairly easy to review now by viewing one commit at a time and reading the corresponding commit msgs.
larsoner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks @drammock !
PR Description
mne-tools/mne-python#13176 switched MNE-Python to use https://github.com/mne-tools/curry-python-reader/ for reading Neuroscan Curry files. CIs that use MNE main have started failing for not having curryreader installed.
closes #1477 (supersedes)
closes #1478 (supersedes)
Merge checklist
Maintainer, please confirm the following before merging.
If applicable: