What’s New in Revision 1.1.4#
These are the changes in SpectroChemPy-1.1.4. See Release notes for a full changelog, including other versions of SpectroChemPy.
Bug Fixes#
Plot preferences are saved again in
PlotPreferences.jsonand restored at the next session, including values set after choosing a style, and the first plot no longer moves this file away.preferences.reset()now resets every plot preference, including thecolormap_*ones, to the values of a new session, and removes the saved file. (#1799)Setting
preferences.styleto a style that cannot be found, alone or in a list, now leaves the preferences unchanged instead of partly applied. A value of a style that does not fit its preference is skipped with a warning naming it, instead of silently stopping the style at that line; thegrayscalestyle is now applied completely. (#1799)Fixed the Agilent TPPI direct FFT path so ordinary complex acquisitions are no longer interpreted as quaternion data, preventing non-finite results.
Filter outputs now retain the applied method, effective dimension, and compact filter parameters in their structured history entries.
Whittaker-Eilers filtering now applies along the requested dimension.
Baseline correction outputs now record the fitted model and its effective parameters in their structured history entry instead of only an arithmetic subtraction.
basc()andget_baseline()now honorranges=passed as a keyword instead of silently overwriting it with the positional ranges.Restored parsing of unit expressions that use a dot as a separator (e.g.
kg.morcm.s^-1), which pint 0.26.2 rejects. (#1781)Importing SpectroChemPy or plotting no longer floods the output with Matplotlib “Bad key” warnings with Matplotlib older than 3.11, e.g. on Google Colab. A generated
mycustom.mplstyleshipped by mistake in 1.1.1 to 1.1.3 is removed, along with its unmodified copy in the user Matplotlib stylelib. A copy left in Matplotlib’s ownmpl-data/stylelibdirectory is not touched; delete it by hand if the warnings persist. (#1789)preferences.makestyle(..., to_mpl=True)no longer raisesTypeErrorand makes the new style immediately usable by name, e.g.plot(style=...).Fix
directory=imports withmerge=Trueso compatible datasets discovered under different file extensions can be merged across extension groups, rather than being returned separately. (#1780)TopSpin imports now report when hypercomplex data require the optional
spectrochempy-hypercomplexandnumpy-quaterniondependencies. (#1743)Native
.scploads now preserve the dataset modification timestamp instead of replacing it while restoring the filename and name.Synchronize the vendored OPUS reader with
brukeropusupstream commitaf5a508cef7de8089acd27a215d644ab451257dd. This adds robust handling for compact and multichannel spectra, incomplete data series and reports while preserving thescp.read_opus()andscp.opus.read()APIs.
Dependency Updates#
Extend the official NMR and hypercomplex extra bounds to admit their autonomous 0.2.x releases while preserving compatibility with existing 0.1.x installations during the publication transition.
Updated the documentation dependency
nbconvertto 7.17.2 to address an arbitrary-file-write vulnerability when converting untrusted notebooks.
Developer#
The test suite and the documentation build use a temporary SpectroChemPy configuration directory (one per executed notebook for the docs, and default preferences before each gallery example), so they neither read nor overwrite the saved preferences of the user. (#1799)
MAINT: Moved the official NMR and Hypercomplex plugin sources to their standalone repositories. Core CI now validates consumption of their built wheels and retains coverage for core-only and plugin-absent installations. (#1813, #1816, #1817)