Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2025
1 parent 7666585 commit fe2ab34
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/hppt_model/test_hyspecpptmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ def test_calculate_graph_data_intensity():
assert np.isnan(model.calculate_graph_data()["intensity"][0][0]) # not allowed (Q, E) positions
assert np.isnan(model.calculate_graph_data()["intensity"][84][4]) # not allowed (Q, E) positions

assert np.isclose(
model.calculate_graph_data()["intensity"][84][5], (np.cos(np.radians(166.59943)) ** 2 + 1) / 2
)
assert np.isclose(
model.calculate_graph_data()["intensity"][199][0], (np.cos(np.radians(114.73561)) ** 2 + 1) / 2
)
assert np.isclose(model.calculate_graph_data()["intensity"][84][5], (np.cos(np.radians(166.59943)) ** 2 + 1) / 2)
assert np.isclose(model.calculate_graph_data()["intensity"][199][0], (np.cos(np.radians(114.73561)) ** 2 + 1) / 2)
assert np.isnan(model.calculate_graph_data()["intensity"][199][1]) # not allowed (Q, E) positions


Expand Down

0 comments on commit fe2ab34

Please sign in to comment.