Use paramio to access parameter information #815
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #780
Unfortunately
paramio
is a bit-too chatty when it hits an error (like a parameter not having a min, max, or prompt value), and this is handled at the C layer which meanscontextlib.redirect_stderr
can not be used. I forget now how to manually change the stderr channel in such a way to get this to work, so we are stuck with./mk_runtool.py
generating a lot of messages likeand so hiding any useful information.
I claim that the
runtool
module this creates is semantically the same as the previous version, but there are textual differences for the floating point values - in particular the minimum and maximum ranges. You see changes like1.0
->1
and0.5e-4
->5e-5
.