AllenNeuralDynamics / aind-metadata-service

Service to retrieve Labtracks/Sharepoint info using a REST API
MIT License
3 stars 1 forks source link

Craniotomies should also have Headframe #104

Closed mekhlakapoor closed 1 year ago

mekhlakapoor commented 1 year ago

Describe the bug We expect all craniotomies to be done with a headframe. However, the service is mapping only craniotomies

To Reproduce Steps to reproduce the behavior:

  1. query aind-metadata-service for subject_id=661278
  2. see that it only maps craniotomy

Expected behavior When a procedure has a craniotomy, automatically map to headframe too. Specifically, in nsb2023.models, add an elif clause in has_hp_procedure that if has_cran_procedure is true, to return True

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.