Repository navigation
Maintenance release. No API changes and no behavioural changes — existing code and
notebooks run unmodified.
Fixed
-
Spectral EWS now work on modern SciPy / pandas.
compute_spectrum()(and therefore
compute_smax()andcompute_spec_type()) raised
KeyError: 'key of type tuple not found and not a MultiIndex'on recent stacks.
SciPy ≥ 1.16 routessignal.welchthroughShortTimeFFT, which slices its input as
x[..., i0:i1]; given a pandasSeries, pandas ≥ 3.0 reads that tuple as a MultiIndex
key and raises rather than falling through to positional slicing. The series is now
converted to an array at the boundary.
The code fix landed onmainin March 2026 but had not been published to PyPI, so every
released install still carried the break. This release ships it.
Reported in #474. -
compute_entropy(method='kolmogorov')now works on NumPy 2. EntropyHub 2.0 — its
latest release — still usesnp.NaN, which NumPy removed in 2.0, soEH.K2En()and
EH.CoSiEn()raisedAttributeError.ewstools' own source was already clean; the
alias is restored immediately before the EntropyHub import, andnp.NaNwas only ever
a spelling ofnp.nan, so nothing changes numerically. This matters because of the
NumPy change below: lifting thenumpy<2ceiling is what puts users on the stack where
the break appears, and it was a partial break —method='sample'worked while
method='kolmogorov'failed — which stays hidden until someone reaches for that method.
Verified on NumPy 2.4.6 / pandas 3.0.5 / SciPy 1.17.1: fails without the shim, passes
with it. Covered by a regression test. The shim can be dropped once EntropyHub ships a
NumPy 2 compatible release (EntropyHub#21).
Changed
numpy < 2.0ceiling removed. NumPy 2.x is supported and is now covered by CI. The
pin blocked installation alongside current scientific-Python environments — which is how
the above bug reached a user in the first place.
Added
- CI matrix extended to Python 3.13 and 3.14, so modern-stack regressions surface in CI
rather than in users' notebooks.fail-fast: falseso one failing version no longer masks
results for the others.
Verified
Full test suite plus the spectral tutorial path, in clean containers, with dependencies
resolved from pyproject.toml as a user would get them:
| Python | NumPy | pandas | SciPy | tests | spectral calls |
|---|---|---|---|---|---|
| 3.9.25 | 2.0.2 | 2.3.3 | 1.13.1 | 30 passed, 1 skipped | 6/6 |
| 3.12.13 | 2.5.1 | 3.0.3 | 1.18.0 | 30 passed, 1 skipped | 6/6 |
| 3.14.6 | 2.5.1 | 3.0.3 | 1.18.0 | 30 passed, 1 skipped | 6/6 |
The single skip is the TensorFlow deep-learning test, which guards itself with
pytest.importorskip where TF has no wheels.