Closed bruno-f-cruz closed 3 months ago
This one would greatly benefit from merging https://github.com/AllenNeuralDynamics/aind-data-schema-models/pull/61 as it would ensure that current rigs running under the old ophys
modality would still work.
I decided to also patch it at the level of the watchdog by creating a functional BeforeValidator
that coerces ophys into pophys. It is not pretty but since aind-transfer-models
also uses its own validation for modalities, seems like the easiest solution for now. We can keep the validation for now and eventually remove it if people indeed stop using it
This PR updates the watchdog to be compatible with aind-data-schemas-models >=0.4. This update will break compatibility with versions prior to 0.4 since the previous "_abbreviation_map" has now been renamed to "abbreviation_map" and
ophys
is no longer a valid modality as it has been superseded bypophys
.Closes #48