Browse Source

Release: e0811681ca

master
Dirk Alders 4 years ago
parent
commit
d5f9931bca
4 changed files with 4164 additions and 3995 deletions
  1. 1
    1
      __init__.py
  2. 1
    1
      _testresults_/coverage.xml
  3. 4162
    3993
      _testresults_/unittest.json
  4. BIN
      _testresults_/unittest.pdf

+ 1
- 1
__init__.py View File

@@ -71,7 +71,7 @@ def physical_value_repr(value, unit=''):
71 71
         5: 'P',
72 72
     }
73 73
     u = 0
74
-    while u > -4 and u < 5 and (value >= 1000. or value < 1.):
74
+    while u > -4 and u < 5 and (value >= 1000. or value < 1.) and value != 0:
75 75
         if value >= 1:
76 76
             u += 1
77 77
             value /= 1000.

+ 1
- 1
_testresults_/coverage.xml View File

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" ?>
2
-<coverage branch-rate="0.9767" branches-covered="84" branches-valid="86" complexity="0" line-rate="1" lines-covered="208" lines-valid="208" timestamp="1580751729089" version="4.5">
2
+<coverage branch-rate="0.9767" branches-covered="84" branches-valid="86" complexity="0" line-rate="1" lines-covered="208" lines-valid="208" timestamp="1580906930804" version="4.5">
3 3
 	<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
4 4
 	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
5 5
 	<sources/>

+ 4162
- 3993
_testresults_/unittest.json
File diff suppressed because it is too large
View File


BIN
_testresults_/unittest.pdf View File


Loading…
Cancel
Save