Skip to content

Commit

Permalink
FIX - make subjects_dir a global variable
Browse files Browse the repository at this point in the history
Required fix because argparse has been moved to a function
  • Loading branch information
jstout211 committed Jun 25, 2024
1 parent a018833 commit e637049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nih2mne/make_meg_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

global logger
global err_logger
global temp_subjects_dir

root_logger = logging.getLogger()
logger = logging.getLogger()
Expand Down Expand Up @@ -816,6 +817,7 @@ def main():
#
if args.ignore_mri_checks != True:
#Create temp dir for MRI
global temp_subjects_dir
temp_subjects_dir = temp_dir / 'subjects_tmp'
temp_subjects_dir.mkdir(parents=True, exist_ok=True)
temp_mri_prep = temp_dir / 'mri_tmp' / subjid
Expand Down

0 comments on commit e637049

Please sign in to comment.