Fix a comparison problem with pint

See this: https://github.com/hgrecco/pint/issues/40