From 8b2a63455585c8873980b958da7c1f3853d46cf2 Mon Sep 17 00:00:00 2001 From: andreab1997 Date: Wed, 20 Sep 2023 12:08:29 +0200 Subject: [PATCH] Use EKO.read instead of EKO.edit --- src/pineko/theory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pineko/theory.py b/src/pineko/theory.py index c274ce5e..899d8f66 100644 --- a/src/pineko/theory.py +++ b/src/pineko/theory.py @@ -396,7 +396,7 @@ def fk(self, name, grid_path, tcard, pdf): if not np.isclose(xif, 1.0): check_scvar_evolve(grid, max_as, max_al, check.Scale.FACT) # loading ekos to produce a tmp copy - with eko.EKO.edit(eko_filename) as operators: + 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: