richvalues 4.2.26__tar.gz → 4.2.27__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.26/richvalues.egg-info → richvalues-4.2.27}/PKG-INFO +1 -1
- {richvalues-4.2.26 → richvalues-4.2.27}/pyproject.toml +1 -1
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues/__init__.py +5 -4
- {richvalues-4.2.26 → richvalues-4.2.27/richvalues.egg-info}/PKG-INFO +1 -1
- {richvalues-4.2.26 → richvalues-4.2.27}/setup.py +1 -1
- {richvalues-4.2.26 → richvalues-4.2.27}/LICENSE +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/README.md +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues.egg-info/.DS_Store +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues.egg-info/SOURCES.txt +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues.egg-info/dependency_links.txt +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues.egg-info/requires.txt +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/richvalues.egg-info/top_level.txt +0 -0
- {richvalues-4.2.26 → richvalues-4.2.27}/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.27"
|
|
8
8
|
description = "Python package 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.27'
|
|
41
41
|
__author__ = 'Andrés Megías Toledano'
|
|
42
42
|
|
|
43
43
|
import copy
|
|
@@ -3750,7 +3750,7 @@ def parse_as_rich_value(text, abbreviations={}, use_default_extra_sf_lim=False):
|
|
|
3750
3750
|
dx1 = x_dx.split('-')[1]
|
|
3751
3751
|
x = sign + x
|
|
3752
3752
|
else:
|
|
3753
|
-
x = _eval(x_dx)
|
|
3753
|
+
x = str(_eval(x_dx))
|
|
3754
3754
|
dx1, dx2 = '0', '0'
|
|
3755
3755
|
if e != 'e0':
|
|
3756
3756
|
if 'e' in x:
|
|
@@ -6106,8 +6106,9 @@ def _log10(x):
|
|
|
6106
6106
|
|
|
6107
6107
|
def _eval(text):
|
|
6108
6108
|
"""Evaluate a mathematical expression."""
|
|
6109
|
-
y = eval(text, {'__builtins__': {}},
|
|
6110
|
-
|
|
6109
|
+
y = eval(text, {'__builtins__': {}},
|
|
6110
|
+
{'math': math, 'np': np, 'pi': math.pi, 'tau': math.tau,
|
|
6111
|
+
'nan': np.nan})
|
|
6111
6112
|
return y
|
|
6112
6113
|
|
|
6113
6114
|
# Abbreviations from NumPy.
|
|
@@ -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.27',
|
|
9
9
|
license = 'BSD-3-Clause',
|
|
10
10
|
author = 'Andrés Megías Toledano',
|
|
11
11
|
description = 'Python package 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
|
|
File without changes
|