varchasgopalaswamy / AutoUncertainties

Drop-in Uncertainty Propagation with Automatic Differentiation
https://autouncertainties.readthedocs.io/en/latest/
Other
4 stars 1 forks source link

Uncertainty parsing considerations #5

Open MichaelTiemannOSC opened 1 year ago

MichaelTiemannOSC commented 1 year ago

Following up on https://github.com/hgrecco/pint/pull/1797:

When interfacing with RESTful APIs, it can happen that we need to translate uncertain quantities to/from strings.

I, too, had the idea of simplifying the task of parsing '+/-' as unicode "±" but decided not to because the Python tokenization library treats unknown characters as ERRORTOKEN, which did not seem like a place to go.