BIDS session path not resolved when subject has only one session #168
Labels
severity:blocker
A bug or broken feature with no workaround
type:bug
Defects in shipped code and fixes for those defects
For subjects with at least one session, we rely on
layout.get(..., return_type="dir")
to get the path of a given session:bagel-cli/bagel/bids_utils.py
Lines 72 to 79 in b6d15e9
However, this fails if the subject has exactly one session.
To reproduce:
This is very similar to bids-standard/pybids#978.
We should do two things:
return_type="dir"
and replace it with building the path directly (as suggested in the issue)return_type="dir"
issue, e.g. by deprecating it / providing docs.The text was updated successfully, but these errors were encountered: