You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just borrowing terminology from chat with @dengemann for title :-)
I seem to have hit a bug when writing tests for mne-bids. Essentially, if you set meas_date to None, when writing the file, MNE is using the current date/time to set it. Therefore, when you read it back, it's not None anymore. I would consider it a bug but feel free to disagree :) To reproduce, run this:
importos.pathasopimportmnefrommne.datasetsimportsamplefrommne.utilsimport_TempDirdata_path=sample.data_path()
raw_fname=op.join(data_path, 'MEG', 'sample', 'sample_audvis_raw.fif')
raw=mne.io.read_raw_fif(raw_fname)
# Let's make meas_date Noneraw.info['meas_date'] =None# raw.info['meas_id'] = None # even uncommenting this does not change anything# write it to a temp filedata_path2=_TempDir()
raw_fname2=op.join(data_path2, 'sample_audvis_raw.fif')
raw.save(raw_fname2, overwrite=True)
# and read it backraw2=mne.io.read_raw_fif(raw_fname2)
assert(raw.info['meas_date'] ==raw2.info['meas_date'])
Activity
christianbrodbeck commentedon Feb 20, 2018
Sounds like that might be what prevented #2564 from working
jasmainak commentedon Feb 20, 2018
oh boy ...
agramfort commentedon Feb 20, 2018