Skip to content

Commit

Permalink
FIX - overwrite function to save was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Oct 1, 2024
1 parent c137dff commit a230f79
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions nih2mne/GUI/qa_bids_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
'''
Expand Down Expand Up @@ -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}')



Expand Down

0 comments on commit a230f79

Please sign in to comment.