From fe2ab34695018cf2488fe2857bff092dab95dad9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 17:57:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/hppt_model/test_hyspecpptmodel.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/hppt_model/test_hyspecpptmodel.py b/tests/hppt_model/test_hyspecpptmodel.py index 9ea6dcf..9e28893 100644 --- a/tests/hppt_model/test_hyspecpptmodel.py +++ b/tests/hppt_model/test_hyspecpptmodel.py @@ -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