Fix another edge case in _compute_drho (#194)

* tests: failing test for compute_drho edge case added.

* tests: example file for failing compute_drho added.

* tests: assertion that dvalue stays the same added to compute drho test.

* fix: another edge case in computation of drho fixed.
This commit is contained in:
Fabian Joswig 2023-06-02 15:04:15 +01:00 committed by GitHub
parent 9489b87a7e
commit 525c61ed20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

Binary file not shown.

View file

@ -1282,3 +1282,8 @@ def test_f_string_obs():
print(f"{o1:+3}")
print(f"{o1:-1}")
print(f"{o1: 8}")
def test_compute_drho_fails():
obs = pe.input.json.load_json("tests/data/compute_drho_fails.json.gz")
obs.gm()
assert np.isclose(obs.dvalue, 0.0022150779611891094)