-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MRG: Fixes for #11090 #11108
MRG: Fixes for #11090 #11108
Conversation
Also updates tiny_bids Will fail until mne-tools/mne-python#11108 has been merged Fixes mne-tools#1046
@@ -202,7 +202,8 @@ def equalize_channels(instances, copy=True, verbose=None): | |||
FIFF.FIFF_UNIT_T_M: 'T/m', | |||
FIFF.FIFF_UNIT_MOL: 'M', | |||
FIFF.FIFF_UNIT_NONE: 'NA', | |||
FIFF.FIFF_UNIT_CEL: 'C'} | |||
FIFF.FIFF_UNIT_CEL: 'C', |
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.
Are we bound to a string without spaces and no special characters? Can we change this to "degrees C" or (better) "°C"?
let's stick to C to be consistent. It's the SI unit.
… Message ID: ***@***.***>
|
thx @hoechenberger |
Well no, it's not, that's why I'm asking because it's bugging me so much. 🫠 The SI unit is degree Celsius, °C (plural form is degrees Celsius) C is Coulomb. So using C for temperature is factually wrong |
BIDS says to use "oC" see
https://bids-specification.readthedocs.io/en/stable/99-appendices/05-units.html
… Message ID: ***@***.***>
|
Omg, this has got to be the most unfortunate choice ... I thought one of the focus points of BIDS was on human-readable metadata ... I bet if I asked my lab colleagues, none of them would know what "oC" is supposed to mean :( but it's in the spec now and I don't have the time and energy to push for a change, so this is just what we'll have to live with for BIDS But I'd really not want to introduce this ... atrocity... into MNE 😅 |
We could try the unicode degree. I think we only really use this unit mapping for plotting, and for converting scale factors (e.g., |
* upstream/main: Revert "Add error message when conversion of EEG locs to [circle deploy] (mne-tools#11104) MRG: Fixes for mne-tools#11090 (mne-tools#11108) add test for edf units param (mne-tools#11105) BUG: Improve logic for bti (mne-tools#11102) add spectrum class (mne-tools#10184) ENH : add units parameter to read_raw_edf in case units is missing from the file (mne-tools#11099) ENH: Add temperature and galvanic (mne-tools#11090)
@hoechenberger try and see if it breaks anything. Eg IO plotting etc.
… Message ID: ***@***.***>
|
* upstream/main: (366 commits) BUG: Spectrum deprecation cleanup [circle deploy] (mne-tools#11115) Add API entry list and map (mne-tools#10999) Add legacy decorator (mne-tools#11097) [ENH, MRG] Add time-frequency epoch source estimation (mne-tools#11095) Revert "Add error message when conversion of EEG locs to [circle deploy] (mne-tools#11104) MRG: Fixes for mne-tools#11090 (mne-tools#11108) add test for edf units param (mne-tools#11105) BUG: Improve logic for bti (mne-tools#11102) add spectrum class (mne-tools#10184) ENH : add units parameter to read_raw_edf in case units is missing from the file (mne-tools#11099) ENH: Add temperature and galvanic (mne-tools#11090) Add error message when conversion of EEG locs to head space fails (mne-tools#11080) DOC: removed unnecessary line in PSF example (mne-tools#11085) FIX: Update helmet during ICP (mne-tools#11084) Fix various typos (mne-tools#11086) DOC: Rel BUG: don't assume that channel info contains particular keys (mne-tools#11074) [BUG] Fix plot_topomap with sphere="eeglab" (mne-tools#11081) Add `vmin` and `vmax` specification to `mne.Evoked.animate_topomap` (mne-tools#11073) Add _on_missing functionality to UpdateChannelsMixin (mne-tools#11077) ...
* upstream/main: (25 commits) DOC: Exclude some implicit refs in doc build (mne-tools#10433) MAINT: Better issue forms (mne-tools#11101) [FIX] Typo in example (mne-tools#11118) [MRG] Improve interpolation of bridged electrodes (mne-tools#11094) BUG: Spectrum deprecation cleanup [circle deploy] (mne-tools#11115) Add API entry list and map (mne-tools#10999) Add legacy decorator (mne-tools#11097) [ENH, MRG] Add time-frequency epoch source estimation (mne-tools#11095) Revert "Add error message when conversion of EEG locs to [circle deploy] (mne-tools#11104) MRG: Fixes for mne-tools#11090 (mne-tools#11108) add test for edf units param (mne-tools#11105) BUG: Improve logic for bti (mne-tools#11102) add spectrum class (mne-tools#10184) ENH : add units parameter to read_raw_edf in case units is missing from the file (mne-tools#11099) ENH: Add temperature and galvanic (mne-tools#11090) Add error message when conversion of EEG locs to head space fails (mne-tools#11080) DOC: removed unnecessary line in PSF example (mne-tools#11085) FIX: Update helmet during ICP (mne-tools#11084) Fix various typos (mne-tools#11086) DOC: Rel ...
* Add support for GSR and temperature channels Also updates tiny_bids Will fail until mne-tools/mne-python#11108 has been merged Fixes #1046 * Indent * Preserve info * Require MNE devel to run tests * Fix unit writing * Write correct BIDS temperature unit (oC) * Better code * Add conditional * No warning * Skip test on MNE stable * Decorated the wrong test * Add channel statuses * Update doc/whats_new.rst Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org> * Fix channel description * Manually curate tiny_bids to keep the diff small * Revert changes related to _orig_units handling * Fix test Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
@larsoner I discovered a bug (mapping temperature to Coulomb instead of Celsius) and an oversight in #11090 when trying to actually read GSR and temperature data.