Skip to content

Custom configurations are not passed to derivatives indexer #1020

Open
@pierre-nedelec

Description

@pierre-nedelec

Hello!

I'm trying to use a new Entity element, and I can't figure it out by looking at the documentation.
Here's what I have, but it doesn't work:

from bids.layout import BIDSLayout, add_config_paths, Config, Entity
afq_entity = Entity('algorithm', pattern=r"[_/\\]+algo-([a-zA-Z0-9]+)", dtype=str)
my_config = Config('afq_bids_config', entities=afq_entity)
layout = BIDSLayout(root_dir, config=[ my_config])

Returns TypeError: Object of type Config is not JSON serializable.
Also, I'm not trying to replace all entities but add one to the existing default ones.

I've looked at:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions