metrolopy 0.6.4__tar.gz → 0.6.5__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.
Files changed (49) hide show
  1. {metrolopy-0.6.4 → metrolopy-0.6.5}/PKG-INFO +1 -1
  2. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/budget.py +1 -1
  3. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/gummy.py +10 -9
  4. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/version.py +1 -1
  5. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/PKG-INFO +1 -1
  6. {metrolopy-0.6.4 → metrolopy-0.6.5}/LICENSE +0 -0
  7. {metrolopy-0.6.4 → metrolopy-0.6.5}/README.md +0 -0
  8. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/__init__.py +0 -0
  9. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/codata2018.py +0 -0
  10. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/constant.py +0 -0
  11. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/constcom.py +0 -0
  12. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/dfunc.py +0 -0
  13. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/distributions.py +0 -0
  14. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/exceptions.py +0 -0
  15. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/fit.py +0 -0
  16. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/functions.py +0 -0
  17. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/indexed.py +0 -0
  18. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/license.txt +0 -0
  19. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/logunit.py +0 -0
  20. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/mean.py +0 -0
  21. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/miscunits.py +0 -0
  22. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/nonlinearunit.py +0 -0
  23. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/nummy.py +0 -0
  24. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/offsetunit.py +0 -0
  25. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/pmethod.py +0 -0
  26. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/prefixedunit.py +0 -0
  27. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/printing.py +0 -0
  28. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/relunits.py +0 -0
  29. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/siunits.py +0 -0
  30. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/__init__.py +0 -0
  31. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/common.py +0 -0
  32. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_complex.py +0 -0
  33. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_create.py +0 -0
  34. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_gummy.py +0 -0
  35. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_misc.py +0 -0
  36. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_operations.py +0 -0
  37. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/tests/test_ubreakdown.py +0 -0
  38. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/ummy.py +0 -0
  39. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/unit.py +0 -0
  40. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/unitparser.py +0 -0
  41. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/unitutils.py +0 -0
  42. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy/usunits.py +0 -0
  43. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/SOURCES.txt +0 -0
  44. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/dependency_links.txt +0 -0
  45. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/requires.txt +0 -0
  46. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/top_level.txt +0 -0
  47. {metrolopy-0.6.4 → metrolopy-0.6.5}/metrolopy.egg-info/zip-safe +0 -0
  48. {metrolopy-0.6.4 → metrolopy-0.6.5}/setup.cfg +0 -0
  49. {metrolopy-0.6.4 → metrolopy-0.6.5}/setup.py +0 -0
@@ -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
@@ -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):
@@ -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):
@@ -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
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