brain_deer.infrastructure.bids.mapper

Declarative BIDS → BrainDeer layer mapping (JSON/YAML + built-in defaults).

Classes

BIDSMapper

Maps BIDS items to BrainDeer loaded_files defaults.

Module Contents

class brain_deer.infrastructure.bids.mapper.BIDSMapper

Maps BIDS items to BrainDeer loaded_files defaults.

layer_overrides(item: brain_deer.infrastructure.bids.entities.BIDSItem) → dict[str, Any]

BrainDeer layer fields for one BIDS item (does not include bids metadata).

save(dataset_root: pathlib.Path) → pathlib.Path

Write mapper config back to braindeer_bids_map.json.

sync_projections_from_layers(main_window, dataset_root: pathlib.Path) → int

Update projection_rules from current loaded_files projection links.

projection_pairs(loaded_keys: dict[str, brain_deer.infrastructure.bids.entities.BIDSItem]) → list[tuple[str, str]]

Return (source_layer_key, target_layer_key) from projection rules.