Skip to content

Commit

Permalink
Update test_energy_dispersion_to_migration
Browse files Browse the repository at this point in the history
  • Loading branch information
HealthyPear committed Dec 12, 2023
1 parent 2531679 commit 21b24af
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 @@ -133,7 +133,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
assert np.isclose(migration_matrix.sum(axis=1).max(), 1, rtol=0.01)
assert np.allclose(migration_matrix.sum(axis=2).sum(axis=1), 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 21b24af

Please sign in to comment.