Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gilman committed Jan 19, 2025
1 parent a2757ba commit 4012be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_cosmology/test_cone_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_cone(self):

ds = self.cosmo.D_C_z(1.5)
volume_true = 1./3 * np.pi * radius_radians ** 2 * ds ** 3
npt.assert_almost_equal(volume_true, volume_pyhalo, 3)
npt.assert_almost_equal(volume_true / volume_pyhalo, 1.0, 3)


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cosmology/test_cylinder_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_total_volume(self):
npt.assert_almost_equal(volume/volume_pyhalo, 1, 3)

volume_pyhalo = self.geometry_cylinder.volume_MPC3
npt.assert_almost_equal(volume, volume_pyhalo, 3)
npt.assert_almost_equal(volume/volume_pyhalo, 1.0, 3)

if __name__ == '__main__':
pytest.main()

0 comments on commit 4012be0

Please sign in to comment.