Skip to content

Commit

Permalink
Fix test_reduce_data_density
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Dec 17, 2024
1 parent f182ae6 commit fd9b9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def test_reduce_data_density():
cube.reduce_data_density(points_per_angstrom=2)
cube.write_cube_file("low_res.cube", low_precision=True)
low_res = Cube.from_file("low_res.cube")
low_res_integral = np.sum(low_res.data**2) * low_res.dv_au * low_res.scaling_f**2
low_res_integral = np.sum(low_res.data**2) * low_res.dv_au
assert np.abs(low_res_integral - integral) < 0.01
assert cube.scaling_f == 0.2848452

0 comments on commit fd9b9e6

Please sign in to comment.