Skip to content

Commit

Permalink
Added some minimal data checks to make_meg_bids
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Jan 23, 2024
1 parent db8b25b commit 048936c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nih2mne/make_meg_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,17 @@ def get_subj_logger(subjid, log_dir=None, loglevel=logging.INFO):
temp_dir=Path(args.bids_dir).parent / 'bids_prep_temp'
temp_dir.mkdir(parents=True, exist_ok=True)

#
# Data Check
#
assert op.exists(args.meg_input_dir)
if 'mri_brik' in args:
assert op.exists(args.mri_brik)
if 'mri_bsight' in args:
assert op.exists(args.mri_bsight)
if 'mri_bsight_elec' in args:
assert op.exists(args.mri_bsight_elec)

#
# Process MEG
#
Expand Down

0 comments on commit 048936c

Please sign in to comment.