Closed hoechenberger closed 2 years ago
is this already a problem in the source for tiny_bids?
data_path = mne.datasets.testing.data_path()
vhdr_fname = op.join(data_path, "montage", "bv_dig_test.vhdr")
is this already a problem in the source for tiny_bids?
Yes.
# %%
import mne
data_path = mne.datasets.testing.data_path()
vhdr_path = data_path / "montage" / "bv_dig_test.vhdr"
raw = mne.io.read_raw_brainvision(vhdr_path)
raw.plot()
This was added to the testing data here: https://github.com/mne-tools/mne-testing-data/pull/49
As far as I remember I recorded this data in the lab at my institute and truncated it. No idea why the scaling is off 🤔
No idea why the scaling is off 🤔
Could you try to read the data with BV Analyzer? I suspect our reader is the problem here…
@alisenz -- do you have time to:
bv_dig_test
, see: https://github.com/mne-tools/mne-testing-data/tree/master/montage)?
No worries if you don't find the time.
@hoechenberger @sappelhoff the data is readable but if you expect the amplitude of 300-500 µV, this is NOT the case. I'm seeing min 5000 µV here:
wow, what the hell did I do back then? At least this confirms that the issue is with the data and not with our readers. Perhaps I did some weird scaling in a misguided attempt to obscure/anonymize the data, because I thought the severe cropping wasn't enough? After all this was originally only intended for a check of montages and the Brain Products CapTrak system.
Thanks for checking @alisenz
If we're off by 3 orders of magnitude it's probably nV instead of uV?
I don't think so. Knowing myself from 3 years ago I think this is most likely what happened (~80% sure):
Perhaps I did some weird scaling in a misguided attempt to obscure/anonymize the data, because I thought the severe cropping wasn't enough?
fixing this would involve:
.eeg
file with sensible data (leaving vhdr and vmrk intact), e.g., using pybvbv_dig_raw.fif
Thank you @sappelhoff for fixing this!
Description of the problem
I think this screenshot demonstrates the issue:
Steps to reproduce
This is with MNE and MNE-BIDS
main
Expected results
Signal PTP should be in the range of maybe 300 or 500 µV max?
Actual results
PTP amplitude is much larger (2–3 units of magnitude)
Additional information
No response