A Python library to generate components from Crop2ML declarative language.
For more information, refer to the documentation.
conda install -c amei -c openalea3 -c conda-forge pycropml
cyml -c name_of_the_component_repository absolute_path_of_the_output source_language_or_platform
cyml -p name_of_the_Crop2ML_package target_language_or_platform
Run the test suite using pytest or unittest:
# Run all tests python -m pytest test/cyml/test_cyml_operations.py -v # Run a specific test class python -m pytest test/cyml/test_cyml_operations.py::TestCyMLOperations -v # Run a single test python -m pytest test/cyml/test_cyml_operations.py::TestCyMLOperations::test_modulo_operation -v
cd test/cyml python -m unittest test_cyml_operations