Repository navigation
Conversation
micahwoodard
approved these changes
Nov 1, 2026
Collaborator
|
Thanks @jtyoung84 looks good to me! Appreciate your notes, think those are all good points worth implementing |
Author
Cool. Let me know if you want me to merge it and which merge type, or if that's something the reviewer usually does on your team. |
alexpiet
reviewed
Nov 3, 2026
| name="computer", | ||
| manufacturer=Organization.AIND, | ||
| operating_system=platform(), | ||
| serial_number=rig.computer_name, |
Collaborator
There was a problem hiding this comment.
is rig.computer_name the hostname?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes https://github.com/AllenNeuralDynamics/DF-Refactoring/issues/228
I added a small method to map a
AindDynamicForagingRigto an aind-data-schemaComputerobject. I followed an example provided hereThere doesn't seem to be a similar
TrackedDevicesenum in the DF repo, so I hard-coded it.Testing
From root level repo, ran:
There isn't a
testspackage in the aind_behavior_dynamic_foraging_metadata_mapper directory. It's probably outside the scope of this ticket, but should be added in the future to make development easier.How to review
Please check that the mapping is correct and will be appended to the components list.
Notes:
The issue didn't provide a lot of extra context. I had to guess which repo I needed to make a change in. I think it's this one.
It might be more convenient to move these lines:
into the
mapfunction and have the_mapfunction look like_map(self, rig: AindDynamicForagingRig) -> Instrument. This should make testing changes a lot easier. TheAindDynamicForagingRigobject in the root level examples folder could probably be used as test input data.