-
Notifications
You must be signed in to change notification settings - Fork 88
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
[BUG] _channels_tsv writes default unit for channel type #81
Comments
hmm ... so what are you proposing? Can you give an example where it fails? |
For example the
The units are V, however the data is actually in microVolts, see here: Currently just collecting all issues that I encounter while making #78 work. No concrete proposals ... |
okay sounds good! I'd recommend fixing it in a separate PR |
it might be possible that this info is in the |
sounds interesting - how can that be accessed? it's a problem for any system that does not natively save data in volts (so probably all EEG and iEEG data formats, don't know about MEG) |
@teonbrooks can you answer to my question? If possible, I'd like to fix this bug before we release |
I fear you may have to dig into |
I don't have time to fix it before 0.1.0, so added it to 0.2.0 ... mne-tools/mne-python#5607 needs to be fixed first (see above) |
@sappelhoff this would mean we should use the development version of |
I think that mne-tools/mne-python#5633 is ready to be merged, and then MNE will be released next week or so - so we can use MNE 0.17, right? |
I think @teonbrooks wanted to advertise MNE-BIDS at SFN, so I think ideally we'd like to have a release before that. And I don't think MNE is getting released before that ... |
okay, fine by me to use master. I was always more inclined to do that - although the arguments against it are still valid ... the plus side is, that it's making development easier for us. So, let's wait for the mentioned MNE-Python PR to be merged and then I'll open a PR to fix this present issue. |
FYI we plan to release mne-python early november
|
Now that mne-tools/mne-python#5633 was merged, I can start to work on this here :-) |
Perfect! May I suggest branching off from #106 so that you don't have a rebasing mess? |
mne_bids._channels_tsv
writes a unit that is assumed based on the channel type:mne-bids/mne_bids/mne_bids.py
Line 89 in e03f013
This is problematic because different manufacturers save the raw data in different units. Sometimes there are even differences within single manufacturer data formats. Usually, the units are declared in the dataset - when reading the data with MNE-Python, the data gets automatically scaled to e.g., VOLTS so that all MNE-Python objects consistently work in VOLTS.
This is a problem, because we are then copying the non-mne-modified raw data to the bids directory ... and the units will not match.
The text was updated successfully, but these errors were encountered: