Version 1.2.1 (2025-08-10)
This is a minor patch with bug fixes, minor changes, and documentation improvements.
Bug Fixes
- Allow
quant_reg
withtol=inf
to only perform one fit, since it was previously impossible
to recreate the output ofquant_reg
by inputting weights since it required one inner loop. - Allow a
smooth_half_window
of 0 formormol
to skip smoothing rather than raising an
exception in order to be consistent with other methods.
Other Changes
- Set the default of
normalize_weights
to False forairpls
to match its literature
implementation; will deprecate the keyword in version 1.3. - For 2D Whittaker-smoothing algorithms, a ValueError is now raised when
num_eigens
is
less than or equal todiff_order
, which has the same effect as inputtinglam=0
and
is also not allowed. Previously just emitted a warning. - Slightly sped up several functions used for setting up and solving penalized splines.
- Only calculate method signatures when their corresponding functions (eg.
pybaselines.polynomial.modpoly) are called rather than immediately upon importing pybaselines.
Should slightly improve import timings.
Documentation/Examples
- Added an example for using masking with the various types of algorithms in pybaselines.
- Made all example programs in the documentation able to be ran without cloning the repository.
- Added back API documentation which was removed in version 1.2.0 for the functional interface of
pybaselines. The functional interface is now marked as legacy rather than pending deprecation.