Skip to content

Commit

Permalink
copy original operator instead of reinterpolate
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Sep 19, 2023
1 parent 1960c7c commit 5016b86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pineko/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def evolve_grid(
# rotate the targetgrid
if "integrability_version" in grid.key_values():
x_grid = np.append(x_grid, 1.0)
orignal_operators = copy.deepcopy(operators)
eko.io.manipulate.xgrid_reshape(
operators, targetgrid=eko.interpolation.XGrid(x_grid)
)
Expand Down Expand Up @@ -246,10 +247,8 @@ def evolve_grid(
order_mask=order_mask,
xi=(xir, xif),
)
# Rotate again the eko to save disk space
eko.io.manipulate.xgrid_reshape(
operators, targetgrid=opcard.xgrid
)
# Save only the original operator to save disk space
operators = orignal_operators
rich.print(f"Optimizing for {assumptions}")
fktable.optimize(assumptions)
fktable.set_key_value("eko_version", operators.metadata.version)
Expand Down

0 comments on commit 5016b86

Please sign in to comment.