Skip to content

Commit

Permalink
Update test_energy_dispersion_to_migration
Browse files Browse the repository at this point in the history
Fix test_energy_dispersion_to_migration
  • Loading branch information
HealthyPear committed Dec 13, 2023
1 parent 3be9e03 commit 8832741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyirf/irf/tests/test_energy_dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_energy_dispersion_to_migration():
assert migration_matrix.shape[2] == dispersion_matrix.shape[2]

# test that all migrations are included for central energies
np.allclose(migration_matrix.sum(axis=1).max(), 1, rtol=0.1)
assert np.isclose(migration_matrix.sum(axis=1).max(), 1, rtol=0.01)

# test that migrations dont always sum to 1 (since some energies are
# not included in the matrix)
Expand Down

0 comments on commit 8832741

Please sign in to comment.