Skip to content

Commit

Permalink
anatomical coordinates and reference (#1016)
Browse files Browse the repository at this point in the history
* anatomical coordinates and reference

* whitespace

* literal?

* fixing indents maybe

* example
  • Loading branch information
saskiad authored Aug 6, 2024
1 parent 5aeea41 commit c5deee5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 8 additions & 4 deletions examples/ephys_session.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"z": "11087.5",
"unit": "micrometer"
},
"bregma_coordinates": null,
"anatomical_coordinates": null,
"anatomical_reference": null,
"surface_z": null,
"surface_z_unit": "micrometer",
"dye": null,
Expand Down Expand Up @@ -86,7 +87,8 @@
"z": "13262",
"unit": "micrometer"
},
"bregma_coordinates": null,
"anatomical_coordinates": null,
"anatomical_reference": null,
"surface_z": null,
"surface_z_unit": "micrometer",
"dye": null,
Expand Down Expand Up @@ -187,7 +189,8 @@
"z": "11087.5",
"unit": "micrometer"
},
"bregma_coordinates": null,
"anatomical_coordinates": null,
"anatomical_reference": null,
"surface_z": null,
"surface_z_unit": "micrometer",
"dye": null,
Expand Down Expand Up @@ -219,7 +222,8 @@
"z": "13262",
"unit": "micrometer"
},
"bregma_coordinates": null,
"anatomical_coordinates": null,
"anatomical_reference": null,
"surface_z": null,
"surface_z_unit": "micrometer",
"dye": null,
Expand Down
8 changes: 6 additions & 2 deletions 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,7 +217,11 @@ class ManipulatorModule(DomeModule):
...,
title="Manipulator coordinates",
)
bregma_coordinates: Optional[Coordinates3d] = Field(default=None, title="Bregma 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"
)
surface_z: Optional[Decimal] = Field(default=None, title="Surface z")
surface_z_unit: SizeUnit = Field(SizeUnit.UM, title="Surface z unit")
dye: Optional[str] = Field(default=None, title="Dye")
Expand Down

0 comments on commit c5deee5

Please sign in to comment.