Open scarlehoff opened 1 year ago
The code would be here
but I am not sure this should be changed. For one it works so that it is easy to reproduce something from the output folder. Better ideas welcome.
I think in the case of a script the templates defined in the script should take precedence. There's no reason I should know the names used in the script to avoid them in the folder which I'm running from.
I would've expect a crash or at least a warning if there's an ambiguity, no silently getting the wrong result. In any case I'll transfer the issue to the RE repository then.
Comparefits is a bit of a special case in that the filename is harcoded in the script. In the flow it was designed for, the filename is supposed to be relative to the current path. If you were writing a vp runcard and the template was randomly pulled from elsewhere that would be confusing. So I guess some other mechanism would be needed.
If one runs a validphys script (for instance
vp-comparefits
) in a folder where there is already areport.md
file. Thisreport.md
will take precedence over the one define in the script.Not sure whether this is something that should be fixed in
reportengine
or invalidphys
.