Common Archive Observation Model - data engineering tools
Set of Python tools for working with the cADC CAOM2 data model: https://www.opencadc.org/caom2/
Requires pip.
Note: might need to escape chars in your shell
cd caom2 && pip install -e .[test] cd caom2utils && pip install -e .[test] cd caom2repo && pip install -e .[test]
cd ./caom2 pytest caom2
cd ./caom2utils pytest caom2utils
cd ./caom2repo pytest caom2repo
flake8 style checking is enforced on pull requests. Following commands should not report errors
flake8 caom2/caom2 caom2utils/caom2utils caom2repo/caom2repo
If tox, the generic virtual environment tool, is available it can be used to test with different versions of python is isolation. For example, to test on all supported versions of Python in cadcdata (assuming that they are available in the system):
cd ./caom2repo && tox
To test a specific version:
cd ./caom2utils && tox -e py3.9
To list all the available environments:
cd ./caom2 && tox -a