./math/py-uncertainties, Transparent calculations with uncertainties on the quantities involved

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.2.3, Package name: py312-uncertainties-3.2.3, Maintainer: pkgsrc-users

uncertainties allows calculations such as (2 +/- 0.1)*2 = 4 +/- 0.2 to be
performed transparently. Much more complex mathematical expressions involving
numbers with uncertainties can also be evaluated directly.

The uncertainties package takes the pain and complexity out of uncertainty
calculations.


Required to run:
[devel/py-setuptools] [math/py-numpy] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 156.73 KB

Version history: (Expand)


CVS history: (Expand)


   2025-07-03 21:18:12 by Thomas Klausner | Files touched by this commit (92)
Log message:
*: py-numpy needs Python >= 3.11 now
   2025-04-23 17:11:31 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-uncertainties: updated to 3.2.3

3.2.3   2025-April-18

Changes

- Changes how `numpy` is handled as an optional dependency. Previously,
   importing a `numpy`-dependent function, like `correlated_values`,
   without `numpy` installed would result in an `ImportError` at import
   time. Now such a function can be imported but if the user attempts to
   execute it, a `NotImplementedError` is raised indicating that the
   function can't be used because `numpy` couldn't be imported.
- Refactors the implementation for the calculation of the derivatives of
   the power function and improves the corresponding testing.

Adds:

- Adds a small benchmarking suite to CI to guard against absolute
   performance regressions and accidental breakage of the lazy expansion
   algorithm whichs ensures O(N), rather than O(N^2), scaling complexity
   for operations involving many numbers with uncertainty. Established
   connectivity with `codspeed.io<codspeed.io>`_ to track benchmarking
   results.

Fixes:

- Adds documentation for `ufloat_fromstr` behavior for strings which do
    not contain uncertainty.
- Fixes typos in `ufloat_fromstr` docstring examples
- Fixes `readthedocs` configuration so that the build passes
- Fixes all doctests
- Adjusts `codecov.io` configuration so that minor code coverage changes
   will not result in indications that tests are failing. Rather code
   coverage reports will be purely informational for code reviewers.
   Also fix other minor configuration issues.
- Fixes a bug that resulted in a `ZeroDivisionError` while formatting
   very small numbers with uncertainty

Deprecates:

- Certain `umath` functions and `AffineScalarFunc`/`UFloat` methods will
   be removed in a future release. A deprecation warning has been added
   to these functions and methods. The following `umath` functions are
   marked as deprecated: `ceil`, `copysign`, `fabs`, `factorial`,
   `floor`, `fmod`, `frexp`, `ldexp`, `modf`, `trunc`. The following
   `AffineScalarFunc`/`UFloat` methods are marked as deprecated:
   `__floordiv__`, `__mod__`, `__abs__`, `__trunc__`, `__lt__`,
   `__le__`, `__gt__`, `__ge__`.
   2025-04-15 18:31:40 by Adam Ciarcinski | Files touched by this commit (58) | Package updated
Log message:
Fix PLIST after py-setuptools update; bump depends and revision
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 08:46:10 by Thomas Klausner | Files touched by this commit (325)
Log message:
*: clean-up after python38 removal
   2024-07-22 06:16:06 by Adam Ciarcinski | Files touched by this commit (1) | Package updated
Log message:
py-uncertainties: update TOOL_DEPENDS
   2024-07-16 05:44:37 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-uncertainties: updated to 3.2.2

3.2.2
Unknown changes
   2024-06-10 07:58:08 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-uncertainties: updated to 3.2.1

3.2.1
Unknown changes