This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Note: the most recent version of pint contains [a bug](https://github.com/hgrecco/pint/pull/1701). | |
Install [this version of pint](https://github.com/BenPortner/pint/tree/fix-subtraction-error) to | |
run below code. | |
""" | |
from pint.facets.plain.registry import build_eval_tree, tokenizer | |
from pint.util import string_preprocessor | |
from pint import UnitRegistry | |
from sympy.parsing.sympy_parser import parse_expr |