Conversation
|
In I did add a parser to (the grids are also saved, but upon quick inspection there isn't really any new insight that can bring) |
nono, I'm worried (correctly as I discuss in a second) about
My The thing that worries me is this line and this one, which I break precisely here. So how to proceed? I can declare this a proper breaking change, which it is for PS: of course the best place for all this would be LHAPDF itself, but alas ... |
|
Why do you need to break it? |
|
@felixhekhorn Sure, I will look at it either tomorrow or Monday! Just so that I have a broad idea, what was wrong and what are you trying to do? |
Now, that I see the actual used code in
nothing directly wrong, but what I want is a central place which provides me with tools for LHAPDF manipulations - and eko and in particular |
There was a problem hiding this comment.
Hi @felixhekhorn I looked at it and tested if it does not break anything in eko. In my opinion it makes sense the way you created the parser.py with this LhapdfDataBlock class, and it looks like most of the other changes are just implementing this in what was already there. I noticed only two small things in parser.py, I don't know if you want to do anything with it but thought I'd mention them anyway:
- in line 34 you have
def add(self, other):
I guess that could be turned into
def add(self, other)->LhapdfDataBlock:
- in line 27 you define this is_valid() but it looks like you're not using it anywhere yet if I'm not mistaken. I guess you could put it directly when you make a block, e.g. in line 91, no?
As I said, small things so maybe you prefer to leave it like this :)
I was about to write this thing for the third time and realized this was two times to many, so I decided to do it properly here. The new
parser.pyscript is clean and easy reusable (which is the main purpose).@evagroenendijk please take a review - I tried to preserve the old behaviour as much as I could, but still some small things changed here and there
@scarlehoff I know there is some cross talk between
genpdfandnnpdfand I haven't double check yet what exactly you use on the other side, but maybe you know better or are quickerI'm not sure on what to do with the benchmark files (benchmarks/ekobox/genpdf/) yet, if to fix them or to drop them. The correct thing would be to rewrite them so they don't uselhapdf(which should be possible) and make them executable in the CI again ...TODO: