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 CHANGED
@@ -1207,7 +1207,7 @@ class Budget(PrettyPrinter):
1207
1207
  if i == self.nx - 1 or i == self.nx+nt-1 or i == ndf-2:
1208
1208
  txt += r'\hline'
1209
1209
  txt += '\n'
1210
- txt += r'\end{array}'
1210
+ txt += '\\end{array}'
1211
1211
  return txt
1212
1212
 
1213
1213
  def _tohtml(self):
metrolopy/gummy.py CHANGED
@@ -1695,13 +1695,11 @@ class gummy(Quantity,metaclass=MetaGummy):
1695
1695
  else:
1696
1696
  slashaxis = gummy.slashaxis
1697
1697
 
1698
- if isinstance(g,nummy):
1699
- if g.name is not None:
1700
- name = g.name
1701
- else:
1702
- name = None
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
- xl += str(name).strip()
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
@@ -20,4 +20,4 @@
20
20
  # You should have received a copy of the GNU General Public License along with
21
21
  # MetroloPy. If not, see <http://www.gnu.org/licenses/>.
22
22
 
23
- __version__ = '0.6.4'
23
+ __version__ = '0.6.5'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metrolopy
3
- Version: 0.6.4
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=L8NQGrtbMzyhEe6A7_7aDSct0yvBQ5pkSIowbVfFpJI,51388
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=LwuzMLRjxfTeXX4tPBxr8Rdy20CgkdfV4Eqp5dsiZPw,141062
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=9w9406ip4nIuflHOFDViJTSl1oW0pDtARHiHG6lDuX4,829
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.4.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
40
- metrolopy-0.6.4.dist-info/METADATA,sha256=L0-y2dZpjBWo8cEn-cAdLZ5vthH85ZA68Ao_c2mseus,4586
41
- metrolopy-0.6.4.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
42
- metrolopy-0.6.4.dist-info/top_level.txt,sha256=TTY_Gf2M3yWScmUStgI-RYOc0YKVcr108GaTl4sedSo,10
43
- metrolopy-0.6.4.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
44
- metrolopy-0.6.4.dist-info/RECORD,,
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,,