barril
barril copied to clipboard
Python package to manage units for physical quantities
updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/pre-commit/mirrors-mypy: v0.990 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.990...v0.991)
The current interfaces `IScalar`, `IQuantity`, etc. don't really have any purpose in our codebase.
* Barril version: 1.10.0 (build py_0 from conda-forge) * Python version: Python 3.6.7 (build he025d50_1008_cpython from conda-forge) * Operating System: Microsoft Windows 10 Pro (10.0.19041 N/A Build 19041) ### Description...
I think `Scalar(1, "m")` should compare equal to `Scalar(100, "cm")`. This would allow us to write more natural code like: ```python if current_tubing_end > import pint >>> ureg = pint.UnitRegistry()...
Follow up: https://github.com/ESSS/barril/issues/15#issuecomment-437443557 We should discuss how to automatically simplify composing units: `Scalar(1, 'kg') * Scalar(1, 'm3') / Scalar(1, 'm3')` should return a scalar with `Quantity('kg')`. This implies that we...
updates: - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2)
Currently the list is: - "ksm3/d" (thousand std cubic metres/ day) - "MMscf(60F)/d" (million standard cubic feet/day) - "MMscf/d" (million standard cubic feet/day) - "MMscm(15C)/d" (million std cubic metres, 15...