Skip to content

missing some root patterns #1168

@bpinsard

Description

@bpinsard

The config file is missing all "root" patterns with TB1* suffixes, resulting in the following errors:

  File "/usr/local/lib/python3.11/site-packages/forbids/schema.py", line 105, in sidecars2unionschema
    schema_name = bids_layout.build_path(series_entities, absolute_paths=False)[:-5] + "-"
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bids/layout/layout.py", line 1293, in build_path
    raise ValueError(
ValueError: Unable to construct build path with source {'datatype': 'fmap', 'extension': '.json', 'suffix': 'TB1map'}

Maybe another reason to push the use of the schema #818 #1163 which in theory should fix that issue by reliably generating root and subject/session patterns.

Should we push a fix of the existing configs in the meantime?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions