richvalues 4.1.4__tar.gz → 4.1.5__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.4 → richvalues-4.1.5}/PKG-INFO +1 -1
- {richvalues-4.1.4 → richvalues-4.1.5}/pyproject.toml +1 -1
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues/__init__.py +6 -7
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues.egg-info/PKG-INFO +1 -1
- {richvalues-4.1.4 → richvalues-4.1.5}/setup.py +1 -1
- {richvalues-4.1.4 → richvalues-4.1.5}/LICENSE +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/README.md +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues.egg-info/SOURCES.txt +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues.egg-info/dependency_links.txt +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues.egg-info/requires.txt +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/richvalues.egg-info/top_level.txt +0 -0
- {richvalues-4.1.4 → richvalues-4.1.5}/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.5"
|
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.5'
|
41
41
|
__author__ = 'Andrés Megías Toledano'
|
42
42
|
|
43
43
|
import copy
|
@@ -3258,8 +3258,8 @@ def rich_value(text=None, domain=None, is_int=None, pdf=None,
|
|
3258
3258
|
distr = sample_from_pdf(pdf_, size=4e4, low=domain[0], high=domain[1])
|
3259
3259
|
if is_int:
|
3260
3260
|
distr = np.round(distr).astype(int)
|
3261
|
-
rvalue = evaluate_distr(distr, domain, consider_intervs)
|
3262
|
-
x1, x2 = rvalue.interval(
|
3261
|
+
rvalue = evaluate_distr(distr, domain, consider_intervs=consider_intervs)
|
3262
|
+
x1, x2 = rvalue.interval(8.)
|
3263
3263
|
x = np.linspace(x1, x2, int(1e4))
|
3264
3264
|
y = pdf_(x)
|
3265
3265
|
norm = np.trapz(y, x)
|
@@ -4079,11 +4079,11 @@ def evaluate_distr(distr, domain=None, function=None, args=None,
|
|
4079
4079
|
rvalue.expression = expression
|
4080
4080
|
|
4081
4081
|
if save_pdf:
|
4082
|
-
x1, x2 = rvalue.interval(
|
4082
|
+
x1, x2 = rvalue.interval(8.)
|
4083
4083
|
if is_int and is_range_small:
|
4084
4084
|
bins = np.arange(x1, x2+2) - 0.5
|
4085
4085
|
else:
|
4086
|
-
num_bins = max(
|
4086
|
+
num_bins = max(120, size//100)
|
4087
4087
|
bins = np.linspace(x1, x2, num_bins)
|
4088
4088
|
probs, _ = np.histogram(distr, bins=bins, density=True)
|
4089
4089
|
values = np.mean([bins[0:-1], bins[1:]], axis=0)
|
@@ -4413,8 +4413,7 @@ def function_with_rich_values(function, args, unc_function=None,
|
|
4413
4413
|
if prop_score > lim1:
|
4414
4414
|
factor = 1. - 0.5 * (min(prop_score,20.)-lim1) / (lim2-lim1)
|
4415
4415
|
len_samples = int(factor * len_samples)
|
4416
|
-
distr = distr_with_rich_values(function, args, len_samples,
|
4417
|
-
is_vectorizable)
|
4416
|
+
distr = distr_with_rich_values(function, args, len_samples, is_vectorizable)
|
4418
4417
|
if output_size == 1 and len(distr.shape) == 1:
|
4419
4418
|
distr = np.array([distr]).transpose()
|
4420
4419
|
output = []
|
@@ -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.5',
|
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
|