Skip to content

Commit

Permalink
ENH/BF: acqsession2bids now takes --session arg for subjects with s…
Browse files Browse the repository at this point in the history
…essions
  • Loading branch information
pvelasco committed May 18, 2021
1 parent 4cd6ae4 commit 86285ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def main():
'label corresponds to sub-<participant_label> '
'from the BIDS spec (so it does not include '
'"sub-").')
parser.add_argument('-n', '--session', required=False, default=None,
help='The label of the session for the imaging data.'
'The label corresponds to ses-<session_label> '
'from the BIDS spec (so it does not include '
'"ses-"). Do not include if there are no sessions.')
parser.add_argument('--overwrite', action='store_true', default=False,
help='flag to allow overwriting existing converted '
'files')
Expand All @@ -76,6 +81,7 @@ def _get_physio_acq_time(physio_file):
physio_files,
bids_dir,
sub=args.subject,
ses=args.session,
get_physio_data=acq2bidsphysio.acq2bids,
get_physio_acq_time=_get_physio_acq_time,
overwrite=args.overwrite,
Expand Down

0 comments on commit 86285ff

Please sign in to comment.