In process_function take nnpdf31_process from PLOTTING_*.yaml#1472
Conversation
|
A couple of things need to be done here:
|
Sure, in the config Class everything is already there to do that instead of the process_lookup, but that's not the case for the other instances of process_lookup.
Not really sure what you mean here. A commondata object is alsways obtained through a Loader at some stage, right? Both the lines you point at are inside CoreConfig, while process_lookup is called outside that class in most cases so the commondata object is not as readily available there. |
|
@Zaharid could you clarify your points above? |
I meant that line specifically, which is used in a lot of code paths.
I like the idea of having some separation of concerns between what happens before and after the graph runs. Stuff like funding appropriate paths to commonda happens before as of now. On top of the (arguable) theoretical purity, it does enable certain features, like for example allowing to override the commondata lookup for the purposes of closure tests. That works because there is a single point that knows how to get the commondata(spec) and knows how to handle that keyword. I suppose it is mostly inconsequential for the remaining uses, but would be good if it wasn't needed. |
addresses #1288