question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

minor issue: MNE naming convention enforcement

See original GitHub issue

I would like to save my ICAs in a “BIDS-like” fashion, such as sub-002_task-bandit_ica.fif.gz, where “bandit” is the task … However, this triggers a warning from check_fname:

https://github.com/mne-tools/mne-python/blob/9865f9275f596443668a06e84e54f2e2c645bddb/mne/preprocessing/ica.py#L1385

While I see the benefit of using ica at the end of the file name, is it crucial to enforce -ica as the convention? I suggest to drop the - before ica.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Apr 25, 2018

From chatting with @jasmainak, the BIDS naming convention uses <key1>-<value1>_<key2>-<value2>..._modality.extension. Underscore is used to separate key-value pairs, so _ica.fif and -ica.fif are both incompatible.

There will be a meeting in August to discuss derivative filenames like you’d use for ICA for example. My sense is that we should scrap the filename check altogether (no warn or logger.info), aside from looking for .fif or .fif.gz extensions for now. Otherwise we are pushing people toward a standard that will be obsolete soon.

The one place this is problematic is Report, which expects the current -ave.fif-style filenames. I think we can add to the Notes section of Report to say what it currently will parse properly, and update it once the BIDS standard is fully usable.

@jasmainak said he’s fine with this, @sappelhoff @cbrnr it sounds like from above/before you agree with eliminating the warning (though perhaps not putting it back eventually, but we can decide that later). Let’s see if @agramfort agrees.

0reactions
larsonercommented, Apr 26, 2018

… but at least _ is incremental progress, so we can do that for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Governing Body MNE - ILO
review need to be accompanied by appropriate means of enforcement. The illegal closure by an MNE (name of MNE given) in the automotive...
Read more >
What's new — MNE 1.2.2 documentation
read_raw_brainvision() when channel names have spaces by Sebastian Major. Fix mne.io.read_raw_brainvision() when "Core" is in the data header by ...
Read more >
Handbook for tax administrations and MNE groups | OECD
An MNE group can thus engage with several tax administrations simultaneously,. Page 9. 8 |. INTERNATIONAL COMPLIANCE ASSURANCE PROGRAMME © OECD ...
Read more >
A Reproducible MEG/EEG Group Study With the MNE Software
The cohort can consist of a handful of subjects for small studies to ... MNE computes the PSD of raw data using the...
Read more >
The OECD Guidelines for Multinational Enterprises
It can also issue a statement and make recommendations. •. The MNE Guidelines are part of the 1976 OECD Declaration on International Investment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found