Skip to content

Feat metadata mapping#63

Open
micahwoodard wants to merge 30 commits intomainfrom
feat-metadata-mapping
Open

Feat metadata mapping#63
micahwoodard wants to merge 30 commits intomainfrom
feat-metadata-mapping

Conversation

@micahwoodard
Copy link
Copy Markdown
Collaborator

@micahwoodard micahwoodard commented Apr 13, 2026

Adds metadata mapping for acquisition, instrument, and data description as well as a cli. Based of vr foraging metadata mappers. Also some fixes for coupled trial generator. There are some things in data description like funding and investigators that need to be worked out

Comment thread src/aind_behavior_dynamic_foraging/data_contract/_dataset.py
Optional[float]: Total volume of water consumed in milliliters, or None if unavailable.
"""

trial_outcomes = dataset(session_path)["Behavior"]["SoftwareEvents"]["TrialOutcome"].load().data["data"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can validate this with the TrialOutcome pydantic class to make your life easier

Comment thread src/Extensions/bonsai.py
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should talk to people from sci comp. As far as I understand this is considered an anti-pattern since they want you to keep this static somewhere.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reached out to Arielle and she said it's preferable to dynamically generate at rig

dependencies = [
"numpy>=2.4.2",
"pydantic-settings",
"aind-behavior-dynamic-foraging==0.0.2rc24",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should just be able to reference the current version in the repo I feel (?)

@micahwoodard
Copy link
Copy Markdown
Collaborator Author

@arielleleon @saskiad this is the pr mapping the dynamic foraging output into an acquisition and instrument model.

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.

3 participants