TypedUnit 0.0.5__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {typedunit-0.0.5 → typedunit-0.0.7}/PKG-INFO +2 -1
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/_version.py +3 -3
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/units.py +5 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit.egg-info/PKG-INFO +2 -1
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit.egg-info/requires.txt +1 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/meta.yaml +2 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/pyproject.toml +2 -1
- {typedunit-0.0.5 → typedunit-0.0.7}/.flake8 +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.github/dependabot.yml +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.github/workflows/deploy_PyPi.yml +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.github/workflows/deploy_anaconda.yml +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.github/workflows/deploy_coverage.yml +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.github/workflows/deploy_documentation.yml +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/.gitignore +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/LICENSE +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/README.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/__init__.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/directories.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/helper.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit/utils.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit.egg-info/SOURCES.txt +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit.egg-info/dependency_links.txt +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/TypedUnit.egg-info/top_level.txt +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/Makefile +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/examples/README.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/examples/example_0.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/examples/example_1.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/images/logo.png +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/make.bat +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/_static/default.css +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/_static/thumbnail.png +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/code.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/conf.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/gallery/index.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/index.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/references.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/sg_execution_times.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/docs/source/theory.rst +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/setup.cfg +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/tests/__init__.py +0 -0
- {typedunit-0.0.5 → typedunit-0.0.7}/tests/test_0.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TypedUnit
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: A package wrapping pint for handling typed units in Python.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -44,6 +44,7 @@ License-File: LICENSE
|
|
|
44
44
|
Requires-Dist: pint
|
|
45
45
|
Requires-Dist: numpy
|
|
46
46
|
Requires-Dist: matplotlib
|
|
47
|
+
Requires-Dist: pint_pandas
|
|
47
48
|
Provides-Extra: testing
|
|
48
49
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
49
50
|
Requires-Dist: pytest-cov<7,>=2; extra == "testing"
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
31
|
+
__version__ = version = '0.0.7'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 0, 7)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'gdd1c6b1a7'
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# Initialize a unit registry
|
|
2
|
+
import pint as _pint
|
|
2
3
|
from pint import Quantity, UnitRegistry
|
|
4
|
+
import pint_pandas as pint
|
|
3
5
|
|
|
4
6
|
ureg = UnitRegistry()
|
|
7
|
+
ureg.setup_matplotlib()
|
|
8
|
+
|
|
9
|
+
_pint.set_application_registry(ureg)
|
|
5
10
|
|
|
6
11
|
ureg.define("photoelectron = [Float64]") # Define a custom unit 'photoelectron'
|
|
7
12
|
ureg.define("event = [Int64]") # Define a custom unit 'events'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TypedUnit
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: A package wrapping pint for handling typed units in Python.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -44,6 +44,7 @@ License-File: LICENSE
|
|
|
44
44
|
Requires-Dist: pint
|
|
45
45
|
Requires-Dist: numpy
|
|
46
46
|
Requires-Dist: matplotlib
|
|
47
|
+
Requires-Dist: pint_pandas
|
|
47
48
|
Provides-Extra: testing
|
|
48
49
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
49
50
|
Requires-Dist: pytest-cov<7,>=2; extra == "testing"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|