PennLINC / fw-heudiconv

Heuristic-based Data Curation on Flywheel
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

Use spaces in subject/session flags #39

Closed TinasheMTapera closed 4 years ago

TinasheMTapera commented 5 years ago

Currently doesn't accept spaces in argparse

(fw_bids) tinashetapera2:sandbox ttapera$ fw-heudiconv-curate --proj tome --dry_run --subject TOME_3046 --session Anatomical Scans --heuristic ~/Downloads/tome_heuristic.py
/Users/ttapera/Documents/BBL/Projects/fw-heudiconv/fw_heudiconv/query.py:4: UserWarning: The DICOM readers are highly experimental, unstable, and only work for Siemens time-series at the moment
Please use with caution.  We would be grateful for your help in improving them
  from nibabel.nicom.dicomwrappers import wrapper_from_data
INFO: Querying Flywheel server...
/Users/ttapera/miniconda3/envs/fw_bids/lib/python3.7/site-packages/flywheel/flywheel.py:5757: UserWarning: Client version 8.6.0 does not match server version 9.0.3. Please update your client version!
  warnings.warn('Client version {} does not match server version {}. Please update your client version!'.format(SDK_VERSION, release_version))
WARNING: Use "pip install flywheel-sdk~=9.0.3" to install a compatible version for this server
DEBUG: Found project: tome (5a15f72fe108ff001bc0d2ca)
Traceback (most recent call last):
  File "/Users/ttapera/miniconda3/envs/fw_bids/bin/fw-heudiconv-curate", line 11, in <module>
    load_entry_point('fw-heudiconv', 'console_scripts', 'fw-heudiconv-curate')()
  File "/Users/ttapera/Documents/BBL/Projects/fw-heudiconv/fw_heudiconv/cli/curate.py", line 191, in main
    dry_run=args.dry_run)
  File "/Users/ttapera/Documents/BBL/Projects/fw-heudiconv/fw_heudiconv/cli/curate.py", line 65, in convert_to_bids
    assert sessions, "No sessions found!"
AssertionError: No sessions found!