Skip to content

Commit

Permalink
fix: newer versions of astropy have Ob0=0 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Dec 2, 2024
1 parent 190b056 commit 3289050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmf/density_field/transfer_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(self, *args, **kwargs):
if self.params["kmax"]:
self.params["camb_params"].Transfer.kmax = self.params["kmax"]

if self.cosmo.Ob0 is None:
if self.cosmo.Ob0 is None or self.cosmo.Ob0 == 0.0:
raise ValueError(
"To use CAMB, you must set the baryon density in the cosmology "
"explicitly."
Expand Down

0 comments on commit 3289050

Please sign in to comment.