gammasim / simtools

Tools and applications for the Simulation System of the CTA Observatory.
https://gammasim.github.io/simtools
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Fix bug in validating dimensionless values #1043

Closed GernotMaier closed 1 month ago

GernotMaier commented 1 month ago

This PR fixes a bug in validating values without dimensions. The following case was accepted but should raise an Exception:

Added a unit test (in tests/unit_tests/data_model/test_validate_data.py::test_check_and_convert_units_dimensionless) to test this.

ctao-dpps-sonarqube[bot] commented 1 month ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube

ctao-dpps-sonarqube[bot] commented 1 month ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube