Refactor get_session_path()
BIDS util to rely only on BIDS Layout
#171
Labels
good first issue
Good issue for a new contributor.
PR welcome
Issue that is not an internal priority, but external PRs to address it are welcome.
quick fix
Minimal planning and/or implementation work required.
refactor
Simplifying or restructuring existing code or documentation.
Currently,
bids_utils.get_session_path
relies on an extra parameterbids_dir
to construct the path for no session layer. Given advice in bids-standard/pybids#978, we should simplify the corresponding if block to uselayout.root
for all cases and just append a session name or empty string depending on whether thesession
param is None.Tests may also need updating following this change.
See
bagel-cli/bagel/cli.py
Lines 268 to 273 in 6763e09
The text was updated successfully, but these errors were encountered: