diff --git a/dist/metrolopy-0.5.1.tar.gz b/dist/metrolopy-0.5.1.tar.gz deleted file mode 100644 index db190a3..0000000 Binary files a/dist/metrolopy-0.5.1.tar.gz and /dev/null differ diff --git a/dist/metrolopy-0.5.1-py3-none-any.whl b/dist/metrolopy-0.5.2-py3-none-any.whl similarity index 69% rename from dist/metrolopy-0.5.1-py3-none-any.whl rename to dist/metrolopy-0.5.2-py3-none-any.whl index 4356f80..c3fbe9d 100644 Binary files a/dist/metrolopy-0.5.1-py3-none-any.whl and b/dist/metrolopy-0.5.2-py3-none-any.whl differ diff --git a/dist/metrolopy-0.5.2.tar.gz b/dist/metrolopy-0.5.2.tar.gz new file mode 100644 index 0000000..fa13738 Binary files /dev/null and b/dist/metrolopy-0.5.2.tar.gz differ diff --git a/dist/metrolopy-0.5.1.zip b/dist/metrolopy-0.5.2.zip similarity index 66% rename from dist/metrolopy-0.5.1.zip rename to dist/metrolopy-0.5.2.zip index 2698c1d..c892511 100644 Binary files a/dist/metrolopy-0.5.1.zip and b/dist/metrolopy-0.5.2.zip differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index 0886660..8005389 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/hand_made_doc.doctree b/docs/_build/doctrees/hand_made_doc.doctree index 7835bca..33acf27 100644 Binary files a/docs/_build/doctrees/hand_made_doc.doctree and b/docs/_build/doctrees/hand_made_doc.doctree differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index 802131a..0dac062 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/doctrees/metrolopy.doctree b/docs/_build/doctrees/metrolopy.doctree index 9801f32..5fb0264 100644 Binary files a/docs/_build/doctrees/metrolopy.doctree and b/docs/_build/doctrees/metrolopy.doctree differ diff --git a/docs/_build/doctrees/metrolopy.tests.doctree b/docs/_build/doctrees/metrolopy.tests.doctree index 3e59272..8f4f152 100644 Binary files a/docs/_build/doctrees/metrolopy.tests.doctree and b/docs/_build/doctrees/metrolopy.tests.doctree differ diff --git a/docs/_build/html/_sources/hand_made_doc.rst.txt b/docs/_build/html/_sources/hand_made_doc.rst.txt index fca3d2a..2ed1099 100644 --- a/docs/_build/html/_sources/hand_made_doc.rst.txt +++ b/docs/_build/html/_sources/hand_made_doc.rst.txt @@ -12,7 +12,7 @@ class gummy =========== class metrolopy.\ **gummy(x, u=0, unit=one, dof=float('inf'), k=1, p=None, -p_method=None, uunit=None, utype=None, name=None)** +uunit=None, utype=None, name=None)** A gummy object represents a numerical value with an uncertainty and (or) a unit. They can be used in place of float values in Python expressions @@ -97,21 +97,6 @@ gummy parameters 0.22 >>> g.u 0.11224696052342387 - -.. _p_method: - -- **p_method**: ({'loc', 'cp', 'gauss', - 'ccp', 'chebyshev', None}) If the *p* parameter is - specified, *p_method* sets the method that is used to calculate the - coverage factor. If p_method is omitted or set to 'loc', then the - uncertainty is assumed to be represented by a normal probability - distribution if *dof* = float('inf') and shifted and scaled Student's - t distribution otherwise. If *p_method* = 'gauss' or 'cp' then the - Guass inequality is used, and if *p_method* = 'chebyshev' or 'ccp' - then the Chebyshev inequality is used. For *p* = 0.95 and *dof* = - float('inf'), *p_method* = 'loc' gives *k* = 2.0, while *p_method* - = 'gauss' gives *k* = 3.0 and *p_method* = 'chebyshev' gives *k* = - 4.5. .. _parameter-uunit: @@ -196,9 +181,20 @@ basic gummy properties the relation between the value of this property and the property *k* is defined by the *p_method* property -.. _property-p-method: +.. _p_method: -- **p_method**: see the p_method_ parameter +- **p_method**: ({'loc', 'cp', 'gauss', + 'ccp', 'chebyshev', None}) If the *p* parameter is + specified, *p_method* sets the method that is used to calculate the + coverage factor. If p_method is omitted or set to 'loc', then the + uncertainty is assumed to be represented by a normal probability + distribution if *dof* = float('inf') and shifted and scaled Student's + t distribution otherwise. If *p_method* = 'gauss' or 'cp' then the + Guass inequality is used, and if *p_method* = 'chebyshev' or 'ccp' + then the Chebyshev inequality is used. For *p* = 0.95 and *dof* = + float('inf'), *p_method* = 'loc' gives *k* = 2.0, while *p_method* + = 'gauss' gives *k* = 3.0 and *p_method* = 'chebyshev' gives *k* = + 4.5. This property may only be set at the class level. .. _name: @@ -270,6 +266,9 @@ basic gummy properties can give some idea of the magnitude of the floating point errors, but is not a substitute for a full numerical error analysis. The default value is ``False``. + +- **cmp_k**, **cmp_p**: k or p values for comparisons, e.g. a > b is True + if c.x > k*c.u where c = b - a. Set only at the class level. basic gummy methods ------------------- diff --git a/docs/_build/html/_sources/index.rst.txt b/docs/_build/html/_sources/index.rst.txt index 8a2106c..6be011f 100644 --- a/docs/_build/html/_sources/index.rst.txt +++ b/docs/_build/html/_sources/index.rst.txt @@ -121,6 +121,9 @@ version history * Version 0.5.1, built 2 April 2019, fixed a major bug that generated negative uncertainties in some cases and fixed some other minor bugs. Improved support for fraction.Fraction and mpmath.mpf values. +* Version 0.5.2, built 5 April 2019, fixed a major bug that propagated + uncertainty incorrectly if a gummy was created with an uncertainty set with + an integer data type. Fixed several other minor bugs. author diff --git a/docs/_build/html/genindex.html b/docs/_build/html/genindex.html index 343d57c..54aec6b 100644 --- a/docs/_build/html/genindex.html +++ b/docs/_build/html/genindex.html @@ -7,7 +7,7 @@
-