Skip to content

feat: update mapper to avoid failure when ROIs are not passed - #504

Merged
dougollerenshaw merged 4 commits into
devfrom
fix/498-fip-null-roi-settings
Oct 30, 2026
Merged

dougollerenshaw merged 4 commits into
devfrom
fix/498-fip-null-roi-settings

Conversation

@dougollerenshaw

@dougollerenshaw dougollerenshaw commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #498

Previously, the presence/absence of ROI configs gated whether or not PatchCordConfigs were defined. However, the details of the PatchCordConfig were derived solely from the implanted fibers in the procedures. After this PR, PatchCordConfigs will be defined regardless, using only implanted fibers (identifed from procedures metadata). This will allow the ROI configs to be nullable.

Note that, in the future, we should be defining patch cord configs solely on the actual connection pattern used at the rig. That is dependent on FIP scheduler being in use and will assume that the schedule is always updated if RAs are unable to match the originally scheduled connection pattern (e.g. if a fiber is broken or otherwise cannot be connected as originally scheduled).

Also note that this will be backward compatible with existing FIP data, allowing this mapper update to be deployed before AllenNeuralDynamics/aind-metadata-extractor#54

@dougollerenshaw dougollerenshaw changed the title First pass at updating mapper to accomodate new fip.json feat: update mapper to avoid failure when ROIs are not passed Oct 13, 2026
Comment thread src/aind_metadata_mapper/fip/mapper.py Resolved

@arielleleon arielleleon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small thing

@dougollerenshaw
dougollerenshaw merged commit e5db0ea into dev Oct 30, 2026
3 checks passed
@dougollerenshaw
dougollerenshaw deleted the fix/498-fip-null-roi-settings branch October 30, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fip mapper fails for null RoiSettings

3 participants