Skip to content

Commit

Permalink
feat: adds optional anatomical coordinates and reference fields to Ma…
Browse files Browse the repository at this point in the history
…nipulator Module
  • Loading branch information
jtyoung84 committed Aug 6, 2024
1 parent 5aeea41 commit 4df37a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions examples/ephys_session.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"z": "11087.5",
"unit": "micrometer"
},
"anatomical_coordinates": null,
"anatomical_reference": null,
"bregma_coordinates": null,
"surface_z": null,
"surface_z_unit": "micrometer",
Expand Down Expand Up @@ -86,6 +88,8 @@
"z": "13262",
"unit": "micrometer"
},
"anatomical_coordinates": null,
"anatomical_reference": null,
"bregma_coordinates": null,
"surface_z": null,
"surface_z_unit": "micrometer",
Expand Down Expand Up @@ -187,6 +191,8 @@
"z": "11087.5",
"unit": "micrometer"
},
"anatomical_coordinates": null,
"anatomical_reference": null,
"bregma_coordinates": null,
"surface_z": null,
"surface_z_unit": "micrometer",
Expand Down Expand Up @@ -219,6 +225,8 @@
"z": "13262",
"unit": "micrometer"
},
"anatomical_coordinates": null,
"anatomical_reference": null,
"bregma_coordinates": null,
"surface_z": null,
"surface_z_unit": "micrometer",
Expand Down
6 changes: 5 additions & 1 deletion src/aind_data_schema/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
VisualStimulation,
)
from aind_data_schema.components.tile import Channel
from aind_data_schema.core.procedures import Anaesthetic
from aind_data_schema.core.procedures import Anaesthetic, CoordinateReferenceLocation


class StimulusModality(str, Enum):
Expand Down Expand Up @@ -217,6 +217,10 @@ class ManipulatorModule(DomeModule):
...,
title="Manipulator coordinates",
)
anatomical_coordinates: Optional[Coordinates3d] = Field(default=None, title="Anatomical coordinates")
anatomical_reference: Optional[
Literal[CoordinateReferenceLocation.BREGMA, CoordinateReferenceLocation.LAMBDA]
] = Field(default=None, title="Anatomical coordinate reference")
bregma_coordinates: Optional[Coordinates3d] = Field(default=None, title="Bregma coordinates")
surface_z: Optional[Decimal] = Field(default=None, title="Surface z")
surface_z_unit: SizeUnit = Field(SizeUnit.UM, title="Surface z unit")
Expand Down

0 comments on commit 4df37a0

Please sign in to comment.