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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: richvalues
3
- Version: 4.2.26
3
+ Version: 4.2.27
4
4
  Summary: Python package for working with uncertainties and upper/lower limits
5
5
  Home-page: https://github.com/andresmegias/richvalues/
6
6
  Author: Andrés Megías Toledano
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "richvalues"
7
- version = "4.2.26"
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.26'
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__': {}}, {'math': math, 'np': np,
6110
- 'pi': math.pi, 'tau': math.tau})
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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: richvalues
3
- Version: 4.2.26
3
+ Version: 4.2.27
4
4
  Summary: Python package for working with uncertainties and upper/lower limits
5
5
  Home-page: https://github.com/andresmegias/richvalues/
6
6
  Author: Andrés Megías Toledano
@@ -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.26',
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