-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
from eko import EKO
from eko.interpolation import XGrid
from eko.io import manipulate
from pathlib import Path
new_xgrid = XGrid([0.05, 0.5, 1.0])
target = Path("to_test.tar")
eko_op = EKO.edit(target)
for i, elem in eko_op.items():
eko_op[i] = manipulate.xgrid_reshape(elem, eko_op.xgrid, 2, targetgrid=new_xgrid, inputgrid=new_xgrid)
eko_op.close()
eko_op = EKO.edit(target)
for i, elem in eko_op.items():
eko_op[i] = manipulate.xgrid_reshape(elem, eko_op.xgrid, 2, targetgrid=new_xgrid, inputgrid=new_xgrid)
This is related to NNPDF/nnpdf#2181 (comment) I didn't realize that they were also going to be written down with a shape that is no longer reflected by the metadata.
(not sure whether ths is a bug or a feature that I didn't know I wanted :P but I think eko should not writed down no-longer-readable ekos?)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working