edbennett / format_multiple_errors

MIT License
1 stars 0 forks source link

what to do when half an asymmetric error is >1 #4

Open edbennett opened 1 year ago

edbennett commented 1 year ago

Currently, when formatting with abbreviation, when e.g. an upper error is larger than 1 but the lower is smaller than one, then you get a weird situation where the one without a decimal point doesn't visually match the one with one.

For example, format_multiple_errors(1.234, 0.056, (1.078, 0.091), abbreviate=True, latex=True) gives $1.234(56)({}^{+1.078}_{-91})$.

Should both errors have the decimal made explicit in such cases? (I.e. should the above instead look like $1.234(56)({}^{+1.078}_{-0.091})$?)

chillenzer commented 1 year ago

Yes, definitely! The other one looks totally confusing!

edbennett commented 1 year ago

Darn, that means a rethink of the implementation, as I can no longer just map the same thing to every number.

chillenzer commented 1 year ago

I can give that a thought once I actually looked at the code.