Skip to content

Commit

Permalink
MAINT: remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColmTalbot committed May 15, 2024
1 parent 8984ae4 commit 9506853
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions gwpopulation/models/redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ def differential_spacetime_volume(self, dataset, bounds=False, **parameters):

return differential_volume

def cosmology_model(self, **parameters):
if self.cosmo_model == "FlatwCDM":
return self.cosmo_model(
H0=parameters["H0"], Om0=parameters["Om0"], w0=parameters["w0"]
)
elif self.cosmo_model == "FlatLambdaCDM":
return self.cosmo_model(H0=parameters["H0"], Om0=parameters["Om0"])
else:
raise ValueError(f"Model {self.cosmo_model} not found.")


class PowerLawRedshift(_Redshift):
r"""
Expand Down

0 comments on commit 9506853

Please sign in to comment.