Skip to content

Commit

Permalink
fixing after update
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Sanchez authored and Javier Sanchez committed Jan 29, 2024
1 parent ab00761 commit e1ab7ff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
2 changes: 0 additions & 2 deletions augur/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def f(self, x, labels, pars_fid, sys_fid):
self.lk.reset()
cosmo = ccl.Cosmology(**_pars)
self.lk.update(ParamsMap(_sys_pars))
self.tools.update(ParamsMap(_sys_pars))
self.tools.prepare(cosmo)
f_out = self.lk.compute_theory_vector(self.tools)
elif x.ndim == 2:
Expand All @@ -148,7 +147,6 @@ def f(self, x, labels, pars_fid, sys_fid):
self.tools.reset()
self.lk.reset()
self.lk.update(ParamsMap(_sys_pars))
self.tools.update(ParamsMap(_sys_pars))
cosmo = ccl.Cosmology(**_pars)
self.tools.prepare(cosmo)
f_out.append(self.lk.compute_theory_vector(self.tools))
Expand Down
3 changes: 1 addition & 2 deletions augur/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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


implemented_nzs = [ZDist, LensSRD2018, SourceSRD2018]

Expand Down Expand Up @@ -292,7 +292,6 @@ def generate(config, return_all_outputs=False, write_sacc=True, force_read=True)
cosmo.compute_nonlin_power()
tools = ModelingTools(pt_calculator=pt_calculator)
lk.update(sys_params)
tools.update(sys_params)
tools.prepare(cosmo)
# Run the likelihood (to get the theory)
lk.compute_loglike(tools)
Expand Down
19 changes: 0 additions & 19 deletions augur/tests/conftest.py

This file was deleted.

4 changes: 2 additions & 2 deletions augur/tests/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from ..generate import generate


def test_generate(example_yaml):
generate(example_yaml)
def test_generate():
generate('./examples/srd_y1_3x2.yaml')
assert os.path.isfile(example_yaml['generate']['two_point']['sacc_file'])

0 comments on commit e1ab7ff

Please sign in to comment.