metrolopy 0.6.5__py3-none-any.whl → 1.0.1__py3-none-any.whl
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.
- metrolopy/__init__.py +5 -4
- metrolopy/budget.py +61 -50
- metrolopy/builtin_constants.py +903 -0
- metrolopy/constant.py +108 -104
- metrolopy/constcom.py +84 -83
- metrolopy/distributions.py +120 -39
- metrolopy/exceptions.py +7 -9
- metrolopy/fit.py +3 -3
- metrolopy/functions.py +4 -4
- metrolopy/gummy.py +571 -530
- metrolopy/indexed.py +69 -20
- metrolopy/logunit.py +1 -1
- metrolopy/mean.py +8 -9
- metrolopy/miscunits.py +21 -6
- metrolopy/nummy.py +224 -180
- metrolopy/offsetunit.py +2 -3
- metrolopy/prefixedunit.py +24 -23
- metrolopy/relunits.py +1 -2
- metrolopy/siunits.py +7 -5
- metrolopy/tests/__init__.py +6 -6
- metrolopy/tests/test_complex.py +22 -0
- metrolopy/tests/test_create.py +10 -6
- metrolopy/tests/test_gummy.py +93 -43
- metrolopy/tests/test_misc.py +4 -1
- metrolopy/tests/test_operations.py +58 -2
- metrolopy/tests/test_ubreakdown.py +6 -2
- metrolopy/ummy.py +890 -898
- metrolopy/unit.py +287 -182
- metrolopy/unitparser.py +40 -42
- metrolopy/unitutils.py +183 -159
- metrolopy/usunits.py +14 -13
- metrolopy/version.py +1 -1
- {metrolopy-0.6.5.dist-info → metrolopy-1.0.1.dist-info}/METADATA +23 -5
- metrolopy-1.0.1.dist-info/RECORD +45 -0
- metrolopy-0.6.5.dist-info/RECORD +0 -44
- {metrolopy-0.6.5.dist-info → metrolopy-1.0.1.dist-info}/WHEEL +0 -0
- {metrolopy-0.6.5.dist-info → metrolopy-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {metrolopy-0.6.5.dist-info → metrolopy-1.0.1.dist-info}/top_level.txt +0 -0
- {metrolopy-0.6.5.dist-info → metrolopy-1.0.1.dist-info}/zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metrolopy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: tools for dealing with measured quantities: uncertainty propagation and unit conversion
|
|
5
5
|
Home-page: http://nrc-cnrc.github.io/MetroloPy/
|
|
6
6
|
Author: Harold Parks, National Research Council Canada
|
|
@@ -14,7 +14,7 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
|
14
14
|
Classifier: Intended Audience :: Science/Research
|
|
15
15
|
Classifier: Intended Audience :: Education
|
|
16
16
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
17
|
-
Requires-Python: >=3.
|
|
17
|
+
Requires-Python: >=3.6
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: numpy>=1.13
|
|
@@ -41,7 +41,7 @@ tools for dealing with physical quantities: uncertainty propagation and unit co
|
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
MetroloPy is a pure python package and requires Python 3.
|
|
44
|
+
MetroloPy is a pure python package and requires Python 3.6 or later and the SciPy stack (NumPy, SciPy and Pandas). It looks best in a Jupyter Notebook.
|
|
45
45
|
|
|
46
46
|
Install MetroloPy with `pip install metrolopy` or
|
|
47
47
|
`conda install -c conda-forge metrolopy`.
|
|
@@ -67,12 +67,30 @@ Physical quantities can then be represented in Python as `gummy` objects with an
|
|
|
67
67
|
|
|
68
68
|
MetroloPy can do much more including Monte-Carlo uncertainty propagation, generating uncertainty budget tables, and curve fitting. It can also handle expanded uncertainties, degrees of freedom, correlated quantities, and complex valued quantities. See:
|
|
69
69
|
|
|
70
|
-
* [a tutorial](https://nrc-cnrc.github.io/MetroloPy/_build/html/_static/tutorial.html) (or <a href="https://nrc-cnrc.github.io/MetroloPy/_build/html/_downloads/tutorial.ipynb"
|
|
71
|
-
* [the documentation](https://nrc-cnrc.github.io/MetroloPy/)
|
|
70
|
+
* [a tutorial](https://nrc-cnrc.github.io/MetroloPy/_build/html/_static/tutorial.html) (or <a href="https://nrc-cnrc.github.io/MetroloPy/_build/html/_downloads/tutorial.ipynb" target="_blank"> download the tutorial as Jupyter notebook</a>)
|
|
71
|
+
* [the documentation](https://nrc-cnrc.github.io/MetroloPy/_build/html/index.html)
|
|
72
72
|
* [the issues page on GitHub](https://github.com/nrc-cnrc/Metrolopy/issues)
|
|
73
73
|
* [a list of the units built into MetroloPy](https://nrc-cnrc.github.io/MetroloPy/_static/units.html)
|
|
74
74
|
* [a list of the physical constants built into MetroloPy](https://nrc-cnrc.github.io/MetroloPy/_static/constants.html)
|
|
75
75
|
|
|
76
|
+
## new in version 1.0.0
|
|
77
|
+
|
|
78
|
+
* The calculation of effective degrees of freedom has been improved. In
|
|
79
|
+
previous versions, in a multi-step calculation, the effective degree of freedom
|
|
80
|
+
were calculated at each step based on the degrees of freedom calculated for the
|
|
81
|
+
previous step (using a modified Welch-Satterthwaite approximation). Now
|
|
82
|
+
effective degrees of freedom are always calculated directly from the independent
|
|
83
|
+
variables using the Welch-Satterthwaite equation.
|
|
84
|
+
|
|
85
|
+
* CODATA 2022 values instead of 2018 values are used in the Constants module.
|
|
86
|
+
|
|
87
|
+
* The significance value in budget table has been redefined from
|
|
88
|
+
(sensitivity coefficient * standard uncertainty/combined uncertainty) to the
|
|
89
|
+
square of that value so that the significance values in a budget sum to one.
|
|
90
|
+
|
|
91
|
+
* Units can now be raised to a fractional power and many other bug fixes.
|
|
92
|
+
|
|
93
|
+
|
|
76
94
|
## new in version 0.6.0
|
|
77
95
|
|
|
78
96
|
* A constant library has been added with physical constants that can be accessed
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
metrolopy/__init__.py,sha256=uh775gzrTrU1IBgOGpwDD62kwut8B7DgeCmaGCdFVAo,1637
|
|
2
|
+
metrolopy/budget.py,sha256=AFNpgzy9mP_7JBxS03KA4XX5FfrnCAgdR2bkqgbSfAA,51662
|
|
3
|
+
metrolopy/builtin_constants.py,sha256=ymGZj_0VC8hCTOeRiNWWtaneUxiHhHbrPEd9kBQFNoA,41007
|
|
4
|
+
metrolopy/codata2018.py,sha256=LBQwebsLZ_ZqPdfLYkY0770C0bQUgglvVXazZg4y8OM,37547
|
|
5
|
+
metrolopy/constant.py,sha256=EoIdO4TgmcKhwbljdNYRJeSUpVHnr1MYGE6Pb6kgCYE,16289
|
|
6
|
+
metrolopy/constcom.py,sha256=0SXj4Sxulb-c1wAN0_9SxFgC0dqF_9JOHjVheVLYIY0,8700
|
|
7
|
+
metrolopy/dfunc.py,sha256=_0XvFeOHfZzZp4vZZ1LRCSg2QEIEFvmVjm_DUMjtJLU,12439
|
|
8
|
+
metrolopy/distributions.py,sha256=rh5qRRocXn9_JZ1zmhxCy2O3kwy6XtYIyPHyNxdqefo,48237
|
|
9
|
+
metrolopy/exceptions.py,sha256=N9IvZvNRBNLtKV-t-zYIpOj6SuKpnd6lZUckL8LEBuY,1774
|
|
10
|
+
metrolopy/fit.py,sha256=cocdQjj13fIrj70cnibFcVYliqKbaGUr95-eAWDLNXY,101174
|
|
11
|
+
metrolopy/functions.py,sha256=PIZ1nQwMzOunT6qjDr2Al26Robr8AE7NGGHnkEL_p2c,10057
|
|
12
|
+
metrolopy/gummy.py,sha256=YxM_Vrg2RwB69oRGKPrNiEpIWhBfpxHrR8Xz1OCQkoE,141539
|
|
13
|
+
metrolopy/indexed.py,sha256=29Ev_S6noFLDem9jti_kiBWv_96WIShVhYNN_l-q2aI,8534
|
|
14
|
+
metrolopy/license.txt,sha256=hOKIMVY_W-ijJs8Q2Xo7gf2LE_r88c7eYO3-n0FYyFs,33041
|
|
15
|
+
metrolopy/logunit.py,sha256=Ap7HoJhWrByO9lEHboibubsXTwjFGgM044IQ_bA9nrQ,7468
|
|
16
|
+
metrolopy/mean.py,sha256=l6thmupfEF2PGswAzEQBpgsluko9OK7YLiUeP4h507k,13185
|
|
17
|
+
metrolopy/miscunits.py,sha256=4okSOTKFsXce1yQgVK1jy5s4VGCUGkm1ObBJ1R19YJE,20432
|
|
18
|
+
metrolopy/nonlinearunit.py,sha256=lWImZ_dJRwP_uJGFRQgWeLDEIL_7PetgrJDgExJDSuc,8394
|
|
19
|
+
metrolopy/nummy.py,sha256=AokskJHQl3hzj9IB77YoH6LlY-FcUhebgXV8IGAyAvU,27690
|
|
20
|
+
metrolopy/offsetunit.py,sha256=a8Y6njKImJpHcvNX4-mv2ZKnA1sy-5pz08LJBh0Bbzg,4096
|
|
21
|
+
metrolopy/pmethod.py,sha256=pcMBFhP_6QzCqsHiLM_ADsoxMoTX733w038L6eaFU20,4033
|
|
22
|
+
metrolopy/prefixedunit.py,sha256=rsG_AKWIignQVIrOsahjw0kgOA6NvC3iafu_tKoO7yM,10392
|
|
23
|
+
metrolopy/printing.py,sha256=I_TVH3CWcwWxm82ER44v0_IP9oPUSYHTYR5pfWRdRNo,8993
|
|
24
|
+
metrolopy/relunits.py,sha256=fPuzkx352bnI1_mCTDDVbKHZ1ifsvdgR0gBZ1s9uYfI,2174
|
|
25
|
+
metrolopy/siunits.py,sha256=9eFc8N6namSeZCyqiMrkIcUvatFHiFwr4v05TKRMm5I,8611
|
|
26
|
+
metrolopy/ummy.py,sha256=yMnMjGMnltNAkjYyrwZdZPdID_gRzr35OR9w_NFASME,76826
|
|
27
|
+
metrolopy/unit.py,sha256=_UF8WSHFbOyPZbyebW73jSHD2jO_RKg2_Z60smBhinM,64514
|
|
28
|
+
metrolopy/unitparser.py,sha256=L-eCt_ubIy0rQEG9uttNnkBa3-BpkSnkHW9scHSHKmg,9015
|
|
29
|
+
metrolopy/unitutils.py,sha256=2lw1JWo-xPgE42zIJP3fTsZIOtwDJqnq3Si9CTsIEuY,13802
|
|
30
|
+
metrolopy/usunits.py,sha256=R1BdlW24DMdeq7YUpKgBk83YAibHEkWsu9ylMEW2qmU,11249
|
|
31
|
+
metrolopy/version.py,sha256=KEHcsMWkEkX0EyzEbrA_ixx_JIzj4NN56k2wAFo11qc,829
|
|
32
|
+
metrolopy/tests/__init__.py,sha256=8xPi7YxTaZ1Z7AJwxsTgY82iOj9Ysv7VqU8gOWoF92E,259
|
|
33
|
+
metrolopy/tests/common.py,sha256=-AUUXiz5vuORxpYDKdUkUG9j6jLRVp5fBGRlRTKI0kE,3474
|
|
34
|
+
metrolopy/tests/test_complex.py,sha256=D3pn1BMI4rvYXHDrEyTvAWfqHUe2-8cVDSB49VyUCp0,8388
|
|
35
|
+
metrolopy/tests/test_create.py,sha256=gAo57tUYQh1p8DjB9dqBzXllTXDaZxfOIGp68WV3uA4,18007
|
|
36
|
+
metrolopy/tests/test_gummy.py,sha256=Euejbmz2tA6m0wQbwsAajJYBgL8rhICZmEvUj7l27n0,23480
|
|
37
|
+
metrolopy/tests/test_misc.py,sha256=YGMyJwAlCaggVDesvpzy9VPa4KnfhXBvdsJkoOc_mXY,4402
|
|
38
|
+
metrolopy/tests/test_operations.py,sha256=O7v22xyS6pIUr57PiLAwTIULR8qNtjFgVoPKrRXmAJ4,14247
|
|
39
|
+
metrolopy/tests/test_ubreakdown.py,sha256=xABI5N31jZ9aJMae85tUFPnGCowXnnuvwML5_v3ziPM,13768
|
|
40
|
+
metrolopy-1.0.1.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
|
41
|
+
metrolopy-1.0.1.dist-info/METADATA,sha256=Ebew2Uwz33K3gYeoaBN7kOCltgj4THx7awkpXo6TOag,5495
|
|
42
|
+
metrolopy-1.0.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
43
|
+
metrolopy-1.0.1.dist-info/top_level.txt,sha256=TTY_Gf2M3yWScmUStgI-RYOc0YKVcr108GaTl4sedSo,10
|
|
44
|
+
metrolopy-1.0.1.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
45
|
+
metrolopy-1.0.1.dist-info/RECORD,,
|
metrolopy-0.6.5.dist-info/RECORD
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
metrolopy/__init__.py,sha256=0v85v_dekYLX9ZdvqWL5G9mYAhWmGB6BjhpKDQ590O8,1567
|
|
2
|
-
metrolopy/budget.py,sha256=UFABTvfJvOyI_a8BX6BtJTjAJA-ufZ2YYW1lf7B2GgA,51388
|
|
3
|
-
metrolopy/codata2018.py,sha256=LBQwebsLZ_ZqPdfLYkY0770C0bQUgglvVXazZg4y8OM,37547
|
|
4
|
-
metrolopy/constant.py,sha256=2wz1FT850DEwLW6Ai6C3golEZGBQWuTKn8MMrQMA_PY,16083
|
|
5
|
-
metrolopy/constcom.py,sha256=ZVNaFcOVOQQ__Vm56hUyiPp4796IA7dotpDG5rBIw4w,7917
|
|
6
|
-
metrolopy/dfunc.py,sha256=_0XvFeOHfZzZp4vZZ1LRCSg2QEIEFvmVjm_DUMjtJLU,12439
|
|
7
|
-
metrolopy/distributions.py,sha256=oIRBgkU_S_kaBzQJcf-ydITVhMRUsc58yjL0wtmuUP0,45680
|
|
8
|
-
metrolopy/exceptions.py,sha256=tISrU8mLvqLCcan32n-wFnR2oj2-wICjbnYk0RGT0Jc,1804
|
|
9
|
-
metrolopy/fit.py,sha256=DFi6drCOUiJqZTvD8lfh59D4pgSZrm9RYrcDp-4yQyc,101138
|
|
10
|
-
metrolopy/functions.py,sha256=EIXvpqgeZ1iVFD8ygPByvWsp6EEvQ3qHBro9bX6YZqs,10051
|
|
11
|
-
metrolopy/gummy.py,sha256=3MU0DZERggsH0gaV8yMVvJOr04VnDF3AAAQrzAqT2Ww,141054
|
|
12
|
-
metrolopy/indexed.py,sha256=wFgTeCOKcZFVxUCsNhjyqWCmG3rbgk2t04m4kQ6AFew,6676
|
|
13
|
-
metrolopy/license.txt,sha256=hOKIMVY_W-ijJs8Q2Xo7gf2LE_r88c7eYO3-n0FYyFs,33041
|
|
14
|
-
metrolopy/logunit.py,sha256=pvo5j2TpR4yXcTEBKZPBht1blDFTfNRRMojV4Wgap3k,7468
|
|
15
|
-
metrolopy/mean.py,sha256=nCWKcm8MwjQR_kmTt2ngXSO98PNXLeGdbCqtRcsxaDE,13129
|
|
16
|
-
metrolopy/miscunits.py,sha256=RTxYqjyhj_oAMF7J7XbMHSeqsP1lr9IkTXFzaBpJUyc,20109
|
|
17
|
-
metrolopy/nonlinearunit.py,sha256=lWImZ_dJRwP_uJGFRQgWeLDEIL_7PetgrJDgExJDSuc,8394
|
|
18
|
-
metrolopy/nummy.py,sha256=SW9dHeqNuVL9YJV_2zaP3yZrqJM_HsPBLx_hjc-6Ipo,26073
|
|
19
|
-
metrolopy/offsetunit.py,sha256=lUD6nUnh9saJ52CmAuoR_Hyrn_q63Biw95jQHCZTjNw,4099
|
|
20
|
-
metrolopy/pmethod.py,sha256=pcMBFhP_6QzCqsHiLM_ADsoxMoTX733w038L6eaFU20,4033
|
|
21
|
-
metrolopy/prefixedunit.py,sha256=zvZ2HfIy_eEreBnMvkp2QLuhuTcPtrVUGMaiqUopj-0,10090
|
|
22
|
-
metrolopy/printing.py,sha256=I_TVH3CWcwWxm82ER44v0_IP9oPUSYHTYR5pfWRdRNo,8993
|
|
23
|
-
metrolopy/relunits.py,sha256=L3rvCpwWgUJa3ec-fYmf_UwfyI2DypoJnkQWjnIKgQA,2193
|
|
24
|
-
metrolopy/siunits.py,sha256=TppienkBMQ4ndF43ed-GE6gyKitkKiWa4oOmr75u-tU,8541
|
|
25
|
-
metrolopy/ummy.py,sha256=klkvVauuWRDckQLYySPFjNHk2dukDfLUs6u7X0oaFpc,74302
|
|
26
|
-
metrolopy/unit.py,sha256=SG7pxcNlMGzMat9UO3KfmUF72LKZHTTTfhoDMk_gf7M,61159
|
|
27
|
-
metrolopy/unitparser.py,sha256=nCXbA3S-0AG2QoSqvylGB01U_O_OOFLR-clxPlw75DM,9578
|
|
28
|
-
metrolopy/unitutils.py,sha256=vkVJK1X2QcVbspW6A0BvBw4_FcAsoij2epmJdwEuKSc,12687
|
|
29
|
-
metrolopy/usunits.py,sha256=FivB92A0lwCf0Ptie9z1EVKTS-v79oYaLBuqn0Jx4nA,11202
|
|
30
|
-
metrolopy/version.py,sha256=qdP-E9kxZGFATxDBBjyf2fDZFPlwZIqavNaAvbZSAP0,829
|
|
31
|
-
metrolopy/tests/__init__.py,sha256=J9UlhmiF967vTW40zh2tBFFDOf8rOP9ep4LKaMtXkw8,199
|
|
32
|
-
metrolopy/tests/common.py,sha256=-AUUXiz5vuORxpYDKdUkUG9j6jLRVp5fBGRlRTKI0kE,3474
|
|
33
|
-
metrolopy/tests/test_complex.py,sha256=pSKujsTr8smV21_3JbPdeJxVVtgUqjPm6lOGw3-1NI0,7862
|
|
34
|
-
metrolopy/tests/test_create.py,sha256=k0boYIdTL0m2m5GRnf6U6kKh0QwgjN8WNCcF0wvI32E,17886
|
|
35
|
-
metrolopy/tests/test_gummy.py,sha256=EGIqGSBM8VmoiSx5B_0lV-cPa-a6LXVWAMdYZRlYJ1Y,23248
|
|
36
|
-
metrolopy/tests/test_misc.py,sha256=lGlrZyAoWaKKTjyOpS7b8Zu79shOSvX5AQAnxdkCSnA,4325
|
|
37
|
-
metrolopy/tests/test_operations.py,sha256=VXGA9cVQL-eGeAdfIHryF8Hf8TeN8uOlZ7VRgdSsBYQ,12944
|
|
38
|
-
metrolopy/tests/test_ubreakdown.py,sha256=r1IlMa2cB8iOAq0AmCOqgZ9L2WvBaZvfdml3Xhcx6Qk,13655
|
|
39
|
-
metrolopy-0.6.5.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
|
40
|
-
metrolopy-0.6.5.dist-info/METADATA,sha256=PG1GF7ohO45sTQtBdYnfAMzy8fIO06DPEFXNwbT413E,4586
|
|
41
|
-
metrolopy-0.6.5.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
42
|
-
metrolopy-0.6.5.dist-info/top_level.txt,sha256=TTY_Gf2M3yWScmUStgI-RYOc0YKVcr108GaTl4sedSo,10
|
|
43
|
-
metrolopy-0.6.5.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
44
|
-
metrolopy-0.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|