From 95068537716f3418da6ae9cebda8c4809b6b9c68 Mon Sep 17 00:00:00 2001 From: Colm Talbot Date: Wed, 15 May 2024 15:51:22 +0000 Subject: [PATCH] MAINT: remove deprecated code --- gwpopulation/models/redshift.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gwpopulation/models/redshift.py b/gwpopulation/models/redshift.py index 0e7e09f1..58974070 100644 --- a/gwpopulation/models/redshift.py +++ b/gwpopulation/models/redshift.py @@ -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"""