Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running eko convolute #17

Open
scarlehoff opened this issue Dec 1, 2022 · 10 comments
Open

Error running eko convolute #17

scarlehoff opened this issue Dec 1, 2022 · 10 comments

Comments

@scarlehoff
Copy link
Member

When playing around with some of the pineko options I find the following error:

~$ pineko convolute data/grids/200/E906deut_bin_09.pineappl.lz4 data/ekos/200/E906deut_bin_09.tar test 3 3                                                                         
┌───────────────┐
│ Computing ... │
└───────────────┘
   data/grids/200/E906deut_bin_09.pineappl.lz4
 + data/ekos/200/E906deut_bin_09.tar
 = test
 with max_as=3, max_al=3, xir=1.0, xif=1.0
Traceback (most recent call last):
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/bin/pineko", line 8, in <module>
    sys.exit(command())
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/pineko/cli/convolute.py", line 52, in subcommand
    _grid, _fk, comp = evolve.evolve_grid(
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/pineko/evolve.py", line 133, in evolve_grid
    alphas_values = [op["alphas"] for op in operators["Q2grid"].values()]
  File "/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/lib/python3.10/site-packages/pineko/evolve.py", line 133, in <listcomp>
    alphas_values = [op["alphas"] for op in operators["Q2grid"].values()]
KeyError: 'alphas'

Am I doing something wrong (pineko theory fks work for the same set of grids and theory)? Or is there a bug somehwere?

@alecandido
Copy link
Member

I believe it is a legacy bug: alphas was there before, but then we dropped it. Most likely, you are using a new EKO file with an old Pineko version...

@scarlehoff
Copy link
Member Author

scarlehoff commented Dec 1, 2022

I'm using pineline installed from pip in a clean environment so it should be consistent.

Sadly I cannot check because montblanc just went down..., so I'll let you know next week.

@alecandido
Copy link
Member

Did you compute the EKO yourself or were you using an existing one?

@alecandido
Copy link
Member

However, I see that your "clean environment" is actually pinefarm Poetry environment:

/home/juacrumar/.cache/pypoetry/virtualenvs/pinefarm-HwI1B8mU-py3.10/...

Are you sure you really used pip and not Poetry? And are you sure you didn't use Poetry before?

@scarlehoff
Copy link
Member Author

I cannot check now (which means there could be some garbage I don't remember now!) but I think everything, poetry included, was installed from 0 last week.

@alecandido
Copy link
Member

alecandido commented Dec 1, 2022

This I believe, the point is only the order in which you did things, e.g.:

poetry install
poetry run pip install pineline

and you need at least one poetry install, in order to create the Poetry env.

E.g., I'm not sure if pip enforces upper bounds on transitive deps, in particular if they are already present.

@scarlehoff
Copy link
Member Author

I'll retry next week.

I did compute the eko myself though, so it was the same pineko computing the eko and trying to convolute

@alecandido
Copy link
Member

I'm not blaming you: I know the error, I'm just making hypothesis.
It's our fault in the first place, unfortunately this very long migration was very likely to introduce this kind of bugs: it was a delicate operation, and left us in this intermediate/incomplete state for a too long time. I'll try to finalize as much as possible in the next few weeks.

@alecandido alecandido transferred this issue from NNPDF/pineko Dec 2, 2022
@alecandido
Copy link
Member

I transferred the issue to this repo (from Pineko), since I believe it might be more a problem with the current pineline meta-package:

eko = "^0.10.2"
pineko = "^0.2.5"

At the moment we are shipping already EKO v0.10.2, that is using new layout, but I believe the pineko version might not be ready to the new layout (otherwise you would see no error).
There are many ways to solve this problem, but since we are all quite busy right now, I guess the best one is to wait a second, and soon @andreab1997 will release a compatible version of Pineko.
I'll upgrade the pineline package to latest EKO and Pineko, instead of stepping back, and this will do the job.

@scarlehoff
Copy link
Member Author

Sure, no rush. I don't need it, it's just something I found when testing E906.

I can try installing a newer version of eko to see whether that fixes it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants