metrolopy 0.6.4__py3-none-any.whl → 0.6.5__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/budget.py +1 -1
- metrolopy/gummy.py +10 -9
- metrolopy/version.py +1 -1
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/METADATA +1 -1
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/RECORD +9 -9
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/WHEEL +0 -0
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/licenses/LICENSE +0 -0
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/top_level.txt +0 -0
- {metrolopy-0.6.4.dist-info → metrolopy-0.6.5.dist-info}/zip-safe +0 -0
metrolopy/budget.py
CHANGED
metrolopy/gummy.py
CHANGED
|
@@ -1695,13 +1695,11 @@ class gummy(Quantity,metaclass=MetaGummy):
|
|
|
1695
1695
|
else:
|
|
1696
1696
|
slashaxis = gummy.slashaxis
|
|
1697
1697
|
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
else:
|
|
1704
|
-
name = g
|
|
1698
|
+
try:
|
|
1699
|
+
name = g.name
|
|
1700
|
+
except:
|
|
1701
|
+
name = None
|
|
1702
|
+
|
|
1705
1703
|
if name == '':
|
|
1706
1704
|
name = None
|
|
1707
1705
|
|
|
@@ -1721,7 +1719,10 @@ class gummy(Quantity,metaclass=MetaGummy):
|
|
|
1721
1719
|
name = str(name).replace(' ','\\,').strip()
|
|
1722
1720
|
xl += norm(name)
|
|
1723
1721
|
else:
|
|
1724
|
-
|
|
1722
|
+
try:
|
|
1723
|
+
xl += name.tolatex()
|
|
1724
|
+
except:
|
|
1725
|
+
xl += str(name).strip()
|
|
1725
1726
|
if symbol is not None:
|
|
1726
1727
|
if xl != '':
|
|
1727
1728
|
if slashaxis:
|
|
@@ -2861,7 +2862,7 @@ class gummy(Quantity,metaclass=MetaGummy):
|
|
|
2861
2862
|
return '{:.4f}'.format(x) + pct
|
|
2862
2863
|
if x < 99.9999:
|
|
2863
2864
|
return '{:.5f}'.format(x) + pct
|
|
2864
|
-
return str(x) +
|
|
2865
|
+
return str(x) + pct
|
|
2865
2866
|
|
|
2866
2867
|
@staticmethod
|
|
2867
2868
|
def _k_to_str(k):
|
metrolopy/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metrolopy
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
metrolopy/__init__.py,sha256=0v85v_dekYLX9ZdvqWL5G9mYAhWmGB6BjhpKDQ590O8,1567
|
|
2
|
-
metrolopy/budget.py,sha256=
|
|
2
|
+
metrolopy/budget.py,sha256=UFABTvfJvOyI_a8BX6BtJTjAJA-ufZ2YYW1lf7B2GgA,51388
|
|
3
3
|
metrolopy/codata2018.py,sha256=LBQwebsLZ_ZqPdfLYkY0770C0bQUgglvVXazZg4y8OM,37547
|
|
4
4
|
metrolopy/constant.py,sha256=2wz1FT850DEwLW6Ai6C3golEZGBQWuTKn8MMrQMA_PY,16083
|
|
5
5
|
metrolopy/constcom.py,sha256=ZVNaFcOVOQQ__Vm56hUyiPp4796IA7dotpDG5rBIw4w,7917
|
|
@@ -8,7 +8,7 @@ metrolopy/distributions.py,sha256=oIRBgkU_S_kaBzQJcf-ydITVhMRUsc58yjL0wtmuUP0,45
|
|
|
8
8
|
metrolopy/exceptions.py,sha256=tISrU8mLvqLCcan32n-wFnR2oj2-wICjbnYk0RGT0Jc,1804
|
|
9
9
|
metrolopy/fit.py,sha256=DFi6drCOUiJqZTvD8lfh59D4pgSZrm9RYrcDp-4yQyc,101138
|
|
10
10
|
metrolopy/functions.py,sha256=EIXvpqgeZ1iVFD8ygPByvWsp6EEvQ3qHBro9bX6YZqs,10051
|
|
11
|
-
metrolopy/gummy.py,sha256=
|
|
11
|
+
metrolopy/gummy.py,sha256=3MU0DZERggsH0gaV8yMVvJOr04VnDF3AAAQrzAqT2Ww,141054
|
|
12
12
|
metrolopy/indexed.py,sha256=wFgTeCOKcZFVxUCsNhjyqWCmG3rbgk2t04m4kQ6AFew,6676
|
|
13
13
|
metrolopy/license.txt,sha256=hOKIMVY_W-ijJs8Q2Xo7gf2LE_r88c7eYO3-n0FYyFs,33041
|
|
14
14
|
metrolopy/logunit.py,sha256=pvo5j2TpR4yXcTEBKZPBht1blDFTfNRRMojV4Wgap3k,7468
|
|
@@ -27,7 +27,7 @@ metrolopy/unit.py,sha256=SG7pxcNlMGzMat9UO3KfmUF72LKZHTTTfhoDMk_gf7M,61159
|
|
|
27
27
|
metrolopy/unitparser.py,sha256=nCXbA3S-0AG2QoSqvylGB01U_O_OOFLR-clxPlw75DM,9578
|
|
28
28
|
metrolopy/unitutils.py,sha256=vkVJK1X2QcVbspW6A0BvBw4_FcAsoij2epmJdwEuKSc,12687
|
|
29
29
|
metrolopy/usunits.py,sha256=FivB92A0lwCf0Ptie9z1EVKTS-v79oYaLBuqn0Jx4nA,11202
|
|
30
|
-
metrolopy/version.py,sha256=
|
|
30
|
+
metrolopy/version.py,sha256=qdP-E9kxZGFATxDBBjyf2fDZFPlwZIqavNaAvbZSAP0,829
|
|
31
31
|
metrolopy/tests/__init__.py,sha256=J9UlhmiF967vTW40zh2tBFFDOf8rOP9ep4LKaMtXkw8,199
|
|
32
32
|
metrolopy/tests/common.py,sha256=-AUUXiz5vuORxpYDKdUkUG9j6jLRVp5fBGRlRTKI0kE,3474
|
|
33
33
|
metrolopy/tests/test_complex.py,sha256=pSKujsTr8smV21_3JbPdeJxVVtgUqjPm6lOGw3-1NI0,7862
|
|
@@ -36,9 +36,9 @@ metrolopy/tests/test_gummy.py,sha256=EGIqGSBM8VmoiSx5B_0lV-cPa-a6LXVWAMdYZRlYJ1Y
|
|
|
36
36
|
metrolopy/tests/test_misc.py,sha256=lGlrZyAoWaKKTjyOpS7b8Zu79shOSvX5AQAnxdkCSnA,4325
|
|
37
37
|
metrolopy/tests/test_operations.py,sha256=VXGA9cVQL-eGeAdfIHryF8Hf8TeN8uOlZ7VRgdSsBYQ,12944
|
|
38
38
|
metrolopy/tests/test_ubreakdown.py,sha256=r1IlMa2cB8iOAq0AmCOqgZ9L2WvBaZvfdml3Xhcx6Qk,13655
|
|
39
|
-
metrolopy-0.6.
|
|
40
|
-
metrolopy-0.6.
|
|
41
|
-
metrolopy-0.6.
|
|
42
|
-
metrolopy-0.6.
|
|
43
|
-
metrolopy-0.6.
|
|
44
|
-
metrolopy-0.6.
|
|
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
|