Open
Description
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: