You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is linked to NNPDF/nnpdf#1008 but I have found another example:
fit: 031120-mw-001pdf: {from_: fitpdf} # take key from production rulepdfs:
- NNPDF31_nnlo_as_0118actions_:
- report(main=True)template_text: | {@with pdfs@} {@pdf@} {@endwith@}
outputs 031120-mw-001. However:
fit: 031120-mw-001pdf: {from_: fit} # take key from a resource with `as_input` methodpdfs:
- NNPDF31_nnlo_as_0118actions_:
- report(main=True)template_text: | {@with pdfs@} {@pdf@} {@endwith@}
does not, it outputs NNPDF31_nnlo_as_0118. I personally think the second behaviour is correct but maybe I have a bad opinion!
If we want to change this then I guess there is something special with how {from_: <production rule>} is interacting with collect? I guess it doesn't get resolved and somehow takes precedence when unresolved whereas if {from_: } gets resolved sooner?
The text was updated successfully, but these errors were encountered:
wilsonmr
changed the title
Using key: {from_: <production rule>} overwrites value for key unexpectedly
Using key: {from_: <production rule>} overwrites value for key in collect
Nov 20, 2020
This is linked to NNPDF/nnpdf#1008 but I have found another example:
outputs
031120-mw-001
. However:does not, it outputs
NNPDF31_nnlo_as_0118
. I personally think the second behaviour is correct but maybe I have a bad opinion!If we want to change this then I guess there is something special with how
{from_: <production rule>}
is interacting withcollect
? I guess it doesn't get resolved and somehow takes precedence when unresolved whereas if {from_: } gets resolved sooner?The text was updated successfully, but these errors were encountered: