richvalues 4.2.6__tar.gz → 4.2.7__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.
- {richvalues-4.2.6 → richvalues-4.2.7}/PKG-INFO +1 -1
- {richvalues-4.2.6 → richvalues-4.2.7}/pyproject.toml +1 -1
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues/__init__.py +5 -2
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues.egg-info/PKG-INFO +1 -1
- {richvalues-4.2.6 → richvalues-4.2.7}/setup.py +1 -1
- {richvalues-4.2.6 → richvalues-4.2.7}/LICENSE +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/README.md +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues.egg-info/SOURCES.txt +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues.egg-info/dependency_links.txt +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues.egg-info/requires.txt +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/richvalues.egg-info/top_level.txt +0 -0
- {richvalues-4.2.6 → richvalues-4.2.7}/setup.cfg +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "richvalues"
|
7
|
-
version = "4.2.
|
7
|
+
version = "4.2.7"
|
8
8
|
description = "Python library for working with uncertainties and upper/lower limits"
|
9
9
|
license = {file="LICENSE"}
|
10
10
|
authors = [{name="Andrés Megías Toledano"}]
|
@@ -37,7 +37,7 @@ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
37
37
|
POSSIBILITY OF SUCH DAMAGE.
|
38
38
|
"""
|
39
39
|
|
40
|
-
__version__ = '4.2.
|
40
|
+
__version__ = '4.2.7'
|
41
41
|
__author__ = 'Andrés Megías Toledano'
|
42
42
|
|
43
43
|
import copy
|
@@ -315,7 +315,8 @@ def round_sf_unc(x, dx, n=None, min_exp=None, max_dec=None, extra_sf_lim=None):
|
|
315
315
|
d = len(y.split('.')[-1]) if '.' in y else 0
|
316
316
|
d_ = len(dy.split('.')[-1]) if '.' in dy else 0
|
317
317
|
dy_ = round_sf(float(dy)*10**(d-d_), n, 0, extra_sf_lim)
|
318
|
-
dy
|
318
|
+
dy = dy_.split('e')[0]
|
319
|
+
exp_dy = dy_.split('e')[1] if 'e' in dy_ else 0
|
319
320
|
exp_y_ = 0 if exp_y is None else exp_y
|
320
321
|
if int(exp_y_) > int(exp_dy):
|
321
322
|
dy = round_sf(float(dy)*10**int(exp_dy), n, np.inf, extra_sf_lim)
|
@@ -928,6 +929,8 @@ class RichValue():
|
|
928
929
|
dy2, _ = dy2.split('e')
|
929
930
|
if ')' not in dy1:
|
930
931
|
if dy1 == dy2:
|
932
|
+
if dy1 == '':
|
933
|
+
dy1 = dy2 = '0'
|
931
934
|
if float(dy1) != 0:
|
932
935
|
text = '{}+/-{} e{}'.format(y, dy1, a)
|
933
936
|
else:
|
@@ -5,7 +5,7 @@ with open('README.md', 'r') as file:
|
|
5
5
|
|
6
6
|
setuptools.setup(
|
7
7
|
name = 'richvalues',
|
8
|
-
version = '4.2.
|
8
|
+
version = '4.2.7',
|
9
9
|
license = 'BSD-3-Clause',
|
10
10
|
author = 'Andrés Megías Toledano',
|
11
11
|
description = 'Python library for working with uncertainties and upper/lower limits',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|