Skip to content

Commit

Permalink
remove unneccecary print statement and unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanSchott committed Apr 8, 2024
1 parent 0d5b4d6 commit 9ef052d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions impurityModel/test/test_comparison_with_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def compare_spectra(
print(f"{script_path = }")
print(f"{script_argument = }")

output = subprocess.run(args=[script_path, str(script_argument)], check=True)
subprocess.run(args=[script_path, str(script_argument)], check=True)

files_and_dirs = os.listdir()
print("Files and folders in temporary folder:", files_and_dirs)
Expand All @@ -51,7 +51,6 @@ def compare_spectra(
x_ref = ref_file_handle[key][()]
abs_diff = np.abs(x - x_ref)
i = np.argmax(abs_diff)
print("Max abs diff:", np.ravel(abs_diff)[i])
print("Reference value at max diff:", np.ravel(x_ref)[i])
np.testing.assert_allclose(x, x_ref, atol=3e-2)
np.testing.assert_allclose(x, x_ref, atol=2e-2, rtol=0.1)
Expand Down

0 comments on commit 9ef052d

Please sign in to comment.