-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export fields so that client code can customize $
output.
#12
Conversation
Thanks! If you wish we can gladly add those helpers directly as well! |
I agree using As to how to do that, it depends if you want If you read that linked Forum thread, Araq's advice would be to just suck it up and have the hard dependency. I'm fine with anything, including just exporting the fields to let the user do their own |
Given that we currently manage without any external dependencies, maybe it's worthwhile to go with a client side selection for now? We can document the availability of it in the README and user's can simply put Going from there to a hard dependency in the future shouldn't cause any problems if we decide to do it after all. |
FWIW, I do that client-directed thing in my adix/mvstat for the very same Also, the nimble guy Status has is trying to add conditional dependencies to nimble. So, it might (or might not!) in the near future be a short hop (or no hop) from So, ok. I'll back off on my minimally invasive idea and just do a PR to do that, then, including the README update. |
principled control of precision. While maybe obvious, the "principle" here is just that uncertainties themselves have very limited credible precision. This is especially salient when considering values derived from propagated uncertainty, such as "sigma distances" where said sigma parameter is taken to roughly correspond to unit Gaussian/Normal probability scales. That's just a fairly rough correspondence, often papered over with both generous and heuristic bounds like "5 sigma" to decide if results are to be believed.
Well, in light of the fact that in spite of all the changes I just pushed a user might still want to customize their output, I think you should still export the two fields of the original PR. ( I guess I could have done a feature branch for this, but I don't intend to add any other features.. famous last words, I know! ) If you don't like something, feel free to merge and then hack away at it. I tested this with both nim-1.6.12 and nim-2/devel only. |
Beats me if literally anyone besides you & I will / do use this, but in case they do and they question "2 significant digits of uncertainty" as the driver for decimal place co-rounding of value & uncertainty, I added a citation: c-blake/cligen@ea40880 So, I thought I should maybe cross-ref that commit here. ISO itself charges hundreds of USD/euros for its documents (sigh) but BIPM seems to give them away. I think they're either the same thing or at least the same "GUM" (Guide To Uncertainty of Measurement) ultimate advice, but I'm not willing to pay $$ to find out. 😁 I toyed with the idea of a whole |
Any remaining feedback on this PR or reasons to not merge? |
Thanks a lot and sorry for the delay! |
This lets one do, for example, a simple script wrapper:
that then uses the uncertainty-driven precision formatting engine of
cligen/strUt.fmtUncertain
.