Skip to content

Conversation

@octomike
Copy link
Contributor

fix a trivial issue when setting the longitudinal argument:

smriprep --longitudinal /in /out participant

The "--longitudinal" flag is deprecated. Use "--subject-anatomical-reference unbiased" instead.
Traceback (most recent call last):
  File "/home/mk/.local/bin/smriprep", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/mk/work/src/smriprep/src/smriprep/cli/run.py", line 37, in main
    opts['longitudinal'] = True
    ~~~~^^^^^^^^^^^^^^^^
TypeError: 'Namespace' object does not support item assignment

We have to use the dot notation to change argparse arg's namespace attributes.

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.63%. Comparing base (bcb3a73) to head (b99232d).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #508   +/-   ##
=======================================
  Coverage   70.63%   70.63%           
=======================================
  Files          25       25           
  Lines        2077     2077           
  Branches      270      270           
=======================================
  Hits         1467     1467           
  Misses        552      552           
  Partials       58       58           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@effigies effigies merged commit c554cf0 into nipreps:master Nov 12, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants