Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/packages/aind_behavior_vr_foraging/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data = ["contraqctor>=0.5.5, <0.6.0"]

mappers = [
"aind-clabe[aind-services]>=0.10.5",
"aind-data-schema>=2.6",
"aind-data-schema>=2.7",
"aind-behavior-vr-foraging[data]",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from clabe.data_mapper import helpers as data_mapper_helpers
from pydantic import AwareDatetime

from aind_behavior_vr_foraging import __semver__
from aind_behavior_vr_foraging.data_contract.utils import calculate_consumed_water
from aind_behavior_vr_foraging.rig import AindVrForagingRig
from aind_behavior_vr_foraging.task_logic import AindVrForagingTaskLogic
Expand Down Expand Up @@ -339,9 +340,8 @@ def _get_bonsai_as_code(self) -> acquisition.Code:
return acquisition.Code(
url=self.repository.remote().url,
name="Aind.Behavior.VrForaging",
version=self.repository.head.commit.hexsha,
# version=__semver__, # TODO slot this in when this is solved https://github.com/AllenNeuralDynamics/aind-data-schema/issues/1789
# sha=self.repository.head.commit.hexsha,
version=__semver__,
commit_hash=self.repository.head.commit.hexsha,
language="Bonsai",
language_version=bonsai_version,
run_script=Path(self.bonsai_app.workflow),
Expand All @@ -357,7 +357,8 @@ def _get_python_as_code(self) -> acquisition.Code:
return acquisition.Code(
url=self.repository.remote().url,
name="aind-behavior-vr-foraging",
version=self.repository.head.commit.hexsha,
version=__semver__,
commit_hash=self.repository.head.commit.hexsha,
language="Python",
language_version=semver,
)
Expand All @@ -372,7 +373,7 @@ def _get_curriculum_as_code(self) -> acquisition.Code:
raise ValueError("Trainer state or curriculum is not set in the curriculum suggestion.")
return acquisition.Code(
url=self.repository.remote().url,
# sha=self.repository.head.commit.hexsha, # TODO see https://github.com/AllenNeuralDynamics/aind-data-schema/issues/1789
commit_hash=self.repository.head.commit.hexsha,
name=self.curriculum_suggestion.trainer_state.curriculum.pkg_location,
version=self.curriculum_suggestion.trainer_state.curriculum.version,
language="aind-behavior-curriculum",
Expand Down
9 changes: 5 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading