AllenNeuralDynamics / aind-data-schema

A library that defines AIND data schema and validates JSON.
MIT License
23 stars 16 forks source link

anatomical_coordinates should expect CCFCoords #1098

Open mekhlakapoor opened 1 week ago

mekhlakapoor commented 1 week ago

Describe the bug In SLIMS, the anatomical coordinates are listed as AP, ML, DV (which are only fields in CCF coords). The anatomical_coordinates field in ManipulatorModule expected Coordinates3d which has x, y, z.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

bregmacoords

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

saskiad commented 1 day ago

We can't use CCFcoords for the anatomical coordinates. But you are correct that the ml/ap/dv vs x/y/z needs to be resolved. I might recommend a solution where there is a AnatomicalCoords that uses ml/ap/dv and that the targeted_ccf_coordinates use AnatomicalCoords and have a ccf version field. This will need to be in v2.0

mekhlakapoor commented 11 hours ago

For now, how should I map these coordinates? I was planning to map ml->x, ap->y, and dv->z

saskiad commented 11 hours ago

that's good. Will you add that in the note field?

mekhlakapoor commented 10 hours ago

I can add it to notes