skypyproject / skypy

SkyPy: A package for modelling the Universe.
BSD 3-Clause "New" or "Revised" License
117 stars 38 forks source link

TST: assert photometric error is numerically close to the analytic value #545

Closed rrjbca closed 2 years ago

rrjbca commented 2 years ago

Description

The compatibility workflow is currently failing, see HERE

The development version of numpy appears to cause a small numerical change in the calculation of the Rykoff photometric error. This causes the unit test to fail because it asserts that the calculated error is exactly equal to the analytic value. This PR changes the test to assert that the calculated error is numerically close to the analytic value.

Compatibility tests are shown to work with this fix HERE

Checklist