Skip to content

Commit

Permalink
trying to fix backcompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Sanchez authored and Javier Sanchez committed Jun 11, 2024
1 parent 57520dc commit 953884c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions augur/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@
from augur.tracers.two_point import ZDist, LensSRD2018, SourceSRD2018
from augur.utils.cov_utils import get_gaus_cov, get_SRD_cov, get_noise_power
from augur.utils.cov_utils import TJPCovGaus
import firecrown.likelihood.weak_lensing as wl
import firecrown.likelihood.number_counts as nc
from firecrown.likelihood.two_point import TwoPoint
from firecrown.likelihood.gaussian import ConstGaussian
from packaging.version import Version
import firecrown
if Version(firecrown.__version__) >= Version('1.8'):
import firecrown.likelihood.weak_lensing as wl
import firecrown.likelihood.number_counts as nc
from firecrown.likelihood.two_point import TwoPoint
from firecrown.likelihood.gaussian import ConstGaussian
elif Version(firecrown.__version__) >= Version('1.7.4'):
import firecrown.likelihood.gauss_family.statistic.source.weak_lensing as wl
import firecrown.likelihood.gauss_family.statistic.source.number_counts as nc
from firecrown.likelihood.gauss_family.statistic.two_point import TwoPoint
from firecrown.likelihood.gauss_family.gaussian import ConstGaussian
from firecrown.modeling_tools import ModelingTools
from firecrown.parameters import ParamsMap
from augur.utils.config_io import parse_config
Expand Down

0 comments on commit 953884c

Please sign in to comment.