richvalues 4.1.0__tar.gz → 4.1.2__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.1.0 → richvalues-4.1.2}/PKG-INFO +1 -1
- {richvalues-4.1.0 → richvalues-4.1.2}/pyproject.toml +1 -1
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues/__init__.py +5 -3
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues.egg-info/PKG-INFO +1 -1
- {richvalues-4.1.0 → richvalues-4.1.2}/setup.py +1 -1
- {richvalues-4.1.0 → richvalues-4.1.2}/LICENSE +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/README.md +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues.egg-info/SOURCES.txt +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues.egg-info/dependency_links.txt +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues.egg-info/requires.txt +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/richvalues.egg-info/top_level.txt +0 -0
- {richvalues-4.1.0 → richvalues-4.1.2}/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.1.
|
7
|
+
version = "4.1.2"
|
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.1.
|
40
|
+
__version__ = '4.1.2'
|
41
41
|
__author__ = 'Andrés Megías Toledano'
|
42
42
|
|
43
43
|
import copy
|
@@ -803,6 +803,8 @@ class RichValue():
|
|
803
803
|
else:
|
804
804
|
text = '{}-{}+{} e{}'.format(y, dy1, dy2, a)
|
805
805
|
else:
|
806
|
+
dy1 = dy1.replace('(-', '(')
|
807
|
+
dy2 = dy2.replace('(+', '(')
|
806
808
|
if dy1 == dy2:
|
807
809
|
text = '{}{} e{}'.format(y, dy1, a)
|
808
810
|
else:
|
@@ -3110,7 +3112,7 @@ def rich_value(text=None, domain=None, is_int=None, pdf=None,
|
|
3110
3112
|
if ')' in text:
|
3111
3113
|
if text.count(')') == 1:
|
3112
3114
|
x, dx = x_dx.split('(')
|
3113
|
-
dx = dx[
|
3115
|
+
dx = dx.split(')')[0]
|
3114
3116
|
dx1, dx2 = dx
|
3115
3117
|
else:
|
3116
3118
|
x, dx1, dx2 = x_dx.split('(')
|
@@ -5162,4 +5164,4 @@ evaluate_distribution = evaluate_distr
|
|
5162
5164
|
center_and_uncertainties = center_and_uncs
|
5163
5165
|
is_not_a_number = is_nan = isnan
|
5164
5166
|
is_infinite = is_inf = isinf
|
5165
|
-
is_finite = is_finite = isfinite
|
5167
|
+
is_finite = is_finite = isfinite
|
@@ -5,7 +5,7 @@ with open('README.md', 'r') as file:
|
|
5
5
|
|
6
6
|
setuptools.setup(
|
7
7
|
name = 'richvalues',
|
8
|
-
version = '4.1.
|
8
|
+
version = '4.1.2',
|
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
|