-
Notifications
You must be signed in to change notification settings - Fork 90
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] allow copyfile_brainvision to work with .dat extension #1008
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1008 +/- ##
=======================================
Coverage 95.15% 95.15%
=======================================
Files 25 25
Lines 3778 3778
=======================================
Hits 3595 3595
Misses 183 183
Continue to review full report at Codecov.
|
Hey @dominikwelke I have always wondered where the .dat files are coming from. Do you know? |
dfe522d
to
1efecfa
Compare
hi @sappelhoff I know that at least eeglab creates ..and I found this potentially outdated brainvision spec sheet on the fieldtrip webpage that mentions |
Okay, thanks - we should clarify this with eeglab and brain products then. I'll send them a message. No objection against this PR though. And I think unless there is a good reason, eeglab should write .eeg and not .dat |
@dominikwelke Could you please add a changelog entry? |
sure @hoechenberger bug fix or enhancement? |
decided for |
thx a lot @dominikwelke |
thanks! PS: I wrote the email to Brain Products and will update here once they reply. @dominikwelke regarding the "EEGLAB" export as ".dat", did you refer to this software? --> https://github.com/arnodelorme/bva-io or did you have something else in mind? I am beginning to think that ".dat" is perhaps the export from "Brain Vision Analyzer" |
yes, sorry for being unprecise. yes, the |
okay thanks. I just emailed Arno to clarify this ... in the end it doesn't matter too much, but it's always good to know. |
Here is their answer: TLDR:
|
So we cannot guarantee that .dat is actually readable by our common BV readers? |
indeed, that's how I read the message. And it reinforces my opinion to handle .dat with care ... |
My concern is that we're allowing the creation of something that is not BIDS-compliant. We should at least emit a warning, don't you think? |
we are still writing as eeg vhdr vmrk with the changes here. We basically simply allow that a "dat" is passed (but it'll be converted to eeg) A warning wouldn't hurt. And perhaps a quick check whether reading the file with mne is possible. |
Ah ok. Sorry about the confusion then. |
warning + test makes sense - I can do this if you reopen the PR.. as i wrote above, the context I encounter this in is derivatives (storing EEG after preprocessing pipelines), and from my poking in the BIDS standard, the regulations for derivatives arent fully decided, yet.. what s your opinion on that? it is processed EEG, but still a continuous full recording. as a user i dont see a reason why it shouldnt be possible to store it in standard BIDS format and then move to derivatives folder, as long as there is no official alternative. |
not easily possible :-) if you could submit a fresh follow up PR, that'd be appreciated.
As long as nothing is specified, I think you can put into |
Yes okay, since it's meant for derivatives, maybe we don't even need to warn (yet). No clue. :) |
only for the case when somebody wants to read |
PR Description
hi all.
the datafile in brainvision exchange format either has the extension
.eeg
or.dat
.mne-bids'
copyfile_brainvision()
function can only handle.eeg
, though, and throws an error otherwise.this PR fixes this.
so far I left the new filenames with
.eeg
extension, because I didn't find out whether one option is preferred.Merge checklist
Maintainer, please confirm the following before merging: