From 86285ff0a203fe3fffb3387bb327ca6621007d40 Mon Sep 17 00:00:00 2001 From: pvelasco Date: Tue, 18 May 2021 16:32:29 -0400 Subject: [PATCH] ENH/BF: acqsession2bids now takes `--session` arg for subjects with sessions --- bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py b/bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py index d40d4cb..f234008 100644 --- a/bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py +++ b/bidsphysio.acq2bids/bidsphysio/acq2bids/acqsession2bids.py @@ -51,6 +51,11 @@ def main(): 'label corresponds to sub- ' '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- ' + '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') @@ -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,