try and dissuade people from specifying data_input in runcard#1009
Conversation
|
@wilsonmr Can I just check I understand what is going on here: |
|
That's exactly it. Normally you can't specify production rules as runcard keys (it raises a config error) but you can if you use the |
|
OK I understand, thank you - the bit I am not so sure about is the |
|
specifically the runcard You don't get this problem if you do With dataspecs:
- speclabel: spec 1
fit: <new fit>
dataset_inputs: {from_: fit}
- speclabel: spec 2
fit: <old fit>
experiments: {from_: fit}works fine. However if we don't know what the fit will have (which is the case for now in compfits) then trying to get In general somebody using validphys is rarely writing a runcard for which they don't know whether the fit is new or old, so they really should just not abuse this trick. I will try and make it clearer that there is no issue with |
…ue of taking data input from fitinputcontext
|
I tried to make the docs a bit more clear what the issue is and I added warnings to runcards which correctly use the production rule (because subsequent actions don't use any grouping) is that better? |
I think this is better and the addition of the warnings are very good. I still had to read it through a few times to get my head around it so I'll have a think about whether there is something I could add to make it clearer still. |
|
thanks! I'm also sure I made some grammatical errors. The issue itself is kind of complicated and the TL;DR is don't put |
|
I think part of the problem is that we want that point to come across really clear but there is a lot of technical detail in there which is bogging things down and obscuring it. Maybe we can just have something which states that TL;DR boldly and clearly, and then we have another paragraph bracketed off which is "technical explanation for why"? |
|
Because for most people we just want them to be aware of what the outcome will be if they do put that, and it won't matter to them exactly why. |
|
Yeah that's a solid point! Will take a look now |
|
ready for review! |
RosalynLP
left a comment
There was a problem hiding this comment.
This is looking good, I think it reads clearer now :)
|
Just to mention I restarted the mac build |
voisey
left a comment
There was a problem hiding this comment.
Looks good! Just a few very minor suggestions on the text. Otherwise happy to merge
Co-authored-by: Cameron Voisey <32741139+voisey@users.noreply.github.com>
closes #1008
Unless somebody wants to make a
matched_datasets_from_fitswhich honestly wouldn't be that difficult then I think the best we can do is tell people not to do this.I fixed some errors with the runcards above as well