Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/pineko/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,11 @@ def fk(self, name, grid_path, tcard, pdf):
if sv_method is None:
if not np.isclose(xif, 1.0):
check_scvar_evolve(grid, max_as, max_al, check.Scale.FACT)
# loading ekos
with eko.EKO.edit(eko_filename) as operators:
# loading ekos to produce a tmp copy
with eko.EKO.read(eko_filename) as operators:
eko_tmp_path = operators.paths.root.parent / "eko-tmp.tar"
operators.deepcopy(eko_tmp_path)
with eko.EKO.edit(eko_tmp_path) as operators:
# Obtain the assumptions hash
assumptions = theory_card.construct_assumptions(tcard)
# do it!
Expand Down Expand Up @@ -430,6 +433,9 @@ def fk(self, name, grid_path, tcard, pdf):
assumptions=assumptions,
comparison_pdf=pdf,
)
# Remove tmp ekos
eko_tmp_path.unlink()

logger.info(
"Finished computation of %s - took %f s",
name,
Expand Down