You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be ideal for pybids to be able to determine new BIDS compliant paths for new or hypothetical files based on a dictionary of entities. At the moment there is a BIDSLayout method to do this, build_path. However build_path builds paths from the patterns it inherits from BIDSLayout which are currently an empty list, which means that build_path returns nothing.
If i define new path_patterns for a BIDSLayoutbuild_path is able to run as expected.
Ah, this is a casualty of the Domain classes introduced in a recent version of grabbit. Before, path_patterns used to be a property of the Layout object, but now each Domain has its own path_patterns. So the build_path method needs to be updated to accept a list of domains as an argument, or to combine all available domains if none is passed. Then it would work fine. I'll try to get to this in the next few days, but feel free to submit a PR to grabbit if you like. I've opened an issue for this here.
It would be ideal for pybids to be able to determine new BIDS compliant paths for new or hypothetical files based on a dictionary of entities. At the moment there is a
BIDSLayout
method to do this,build_path
. Howeverbuild_path
builds paths from the patterns it inherits fromBIDSLayout
which are currently an empty list, which means thatbuild_path
returns nothing.If i define new
path_patterns
for aBIDSLayout
build_path
is able to run as expected.There seem to be
path_patterns
defined in theBIDSLayout
config files (https://github.com/INCF/pybids/blob/7315f5c41d6cf20c0f4c9d8624e408ed1e1bbf5f/bids/grabbids/config/bids.json lines 82-89). Is there any way to import these when theBIDSLayout
is initialised?The text was updated successfully, but these errors were encountered: