From a230f79aa2670a7bfe38e7dd894ce8f1669e1286 Mon Sep 17 00:00:00 2001 From: Jeff Stout Date: Mon, 30 Sep 2024 20:38:30 -0400 Subject: [PATCH] FIX - overwrite function to save was not working --- nih2mne/GUI/qa_bids_gui.py | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/nih2mne/GUI/qa_bids_gui.py b/nih2mne/GUI/qa_bids_gui.py index 4daf18d..d58084e 100644 --- a/nih2mne/GUI/qa_bids_gui.py +++ b/nih2mne/GUI/qa_bids_gui.py @@ -393,26 +393,6 @@ def qa_gui(config_fname=False): subject_tile ''' - -# bidsroot_template = 'bidsroot' -# projectroot_template = 'projectroot' - - -# # Data checks -# data_checks = { -# 'MEGraw':{'key': -# '*.ds' -# }, -# 'MRIraw':{'key': -# ['*.nii.gz', '*.nii'] -# }, -# 'MRIfree':{'key': -# ['surf/lh.pial', 'surf/rh.pial'], -# 'logkey':[] -# }, -# 'Coreg':[ ], -# 'MRIprep':[ ], -# } def check_fs_recon(subjid, subjects_dir): ''' @@ -827,13 +807,14 @@ def save(self, fname=None, overwrite=False): if fname_exists and overwrite==False: overwrite = input(f'{fname} exists. \n Do you want to write over (y/n): \n') if overwrite[0].lower()=='y': - overwrite==True + overwrite=True else: return if (fname_exists==False) or (overwrite==True): with open(fname, 'wb') as f: dill.dump(self, f) + print(f'Overwrote: {fname}')