You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it is necessary to create a Quantity objects from a plain string representation, e.g. like 3.0 ms or [3 4 5] ms. Parsing these strings in each use case is error prone and it would be nice to have a more generic function provided, e.g. like the one provided by the R quantities package, see https://www.r-spatial.org/r/2018/05/07/parsing-quantities.html#a-flexible-errors-parser.
A first step towards a generic parsing would be the capability of parsing the string representation of a quantity to have a closed loop between the quantity object and it's string representation. Potentially some code used by the R quantities package could be used as inspiration here, like script1 and script2.
The text was updated successfully, but these errors were encountered:
Sometimes it is necessary to create a Quantity objects from a plain string representation, e.g. like
3.0 ms
or[3 4 5] ms
. Parsing these strings in each use case is error prone and it would be nice to have a more generic function provided, e.g. like the one provided by the R quantities package, see https://www.r-spatial.org/r/2018/05/07/parsing-quantities.html#a-flexible-errors-parser.A first step towards a generic parsing would be the capability of parsing the string representation of a quantity to have a closed loop between the quantity object and it's string representation. Potentially some code used by the R quantities package could be used as inspiration here, like script1 and script2.
The text was updated successfully, but these errors were encountered: