From a018833ab8cf6a82a34d9e8f8a7473bdf48c37e6 Mon Sep 17 00:00:00 2001 From: Jeff Stout Date: Tue, 25 Jun 2024 11:16:20 -0400 Subject: [PATCH] Clear info from emptyroom database files --- nih2mne/make_meg_bids.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nih2mne/make_meg_bids.py b/nih2mne/make_meg_bids.py index 7f9ad6a..ed58608 100755 --- a/nih2mne/make_meg_bids.py +++ b/nih2mne/make_meg_bids.py @@ -356,6 +356,11 @@ def process_meg_bids(input_path=None, subject_in=None, bids_id=None, tmpdir=op.join(temp_dir, f'er_{tmp_}') if not op.exists(tmpdir): os.mkdir(tmpdir) er_fname = get_eroom(meg_fname, tmpdir=tmpdir) + if anonymize==True: + #Anonymize file and ref new dset off of the output fname + er_fname = anonymize_meg(er_fname, tmpdir=tmpdir) + anonymize_finalize(er_fname) #Scrub or remove extra text files + raw = mne.io.read_raw_ctf(er_fname, system_clock='ignore', clean_names=True) raw.info['line_freq'] = 60