Up to [cvs.NetBSD.org] / pkgsrc / math / py-uncertainties
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
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__`.
Fix PLIST after py-setuptools update; bump depends and revision
py-uncertainties: updated to 3.2.2 3.2.2 Unknown changes
py-uncertainties: updated to 3.2.0 3.2.0 Version 3.2.0 is the first release of Uncertainties in nearly two years and the first minor release in over five years. It marks the beginning of an effort to refresh and update the project with a new and expanded team of maintainers. Main Changes Moved code development to lmfit organization, with 4 maintainers. Update documentation. Drop future dependency. Uncertainties now has no external dependencies when not using Numpy integration (Drop official support for Python versions before 3.8). Drop support for Python versions before 3.8, including Python 2 (Drop official support for Python versions before 3.8) remove 1to2 and deprecations (remove 1to2 and depreciations) Developer related changes Moved from setup.py to pyproject.toml (Transition from setup.py to pyproject.toml) Move tests to tests folder (Move tests to tests folder) Update unumpy test to be compatible with numpy 2 Mark docstrings with backslashes as raw strings in tests (Mark docstrings with backslashes as raw strings)
py-uncertainties: added version 3.1.1 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.