diff --git a/src/hmf/density_field/transfer_models.py b/src/hmf/density_field/transfer_models.py index 2542abc..294f219 100644 --- a/src/hmf/density_field/transfer_models.py +++ b/src/hmf/density_field/transfer_models.py @@ -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."