spectrochempy-iris
IRIS analysis plugin for SpectroChemPy.
Provides IRIS analysis objects, batch workflows, kernel comparison helpers, visualisation helpers, and dataset-bound accessors.
Installation
Version 0.2.0 requires SpectroChemPy 1.1.0 or later (and remains restricted to SpectroChemPy versions below 2). Users who stay on SpectroChemPy 1.0.0 should keep an earlier compatible version of this plugin.
pip install spectrochempy[iris]
IRIS uses SciPy NNLS by default for regularized fits. To use the OSQP
or quadprog solver, install the corresponding extra and set
qpsolver="osqp" or qpsolver="quadprog" on IRIS.
pip install "spectrochempy-iris[osqp]"
pip install "spectrochempy-iris[quadprog]"
For conda installations, install osqp or quadprog separately.
Select qpsolver="osqp" to retain the previous solver or to use the
workers option on fixed regularization grids. The batch_iris and
compare_kernels helpers also accept qpsolver.
Changes in 0.2.0
- Regularized fits use SciPy NNLS by default. OSQP and quadprog are optional;
install the corresponding extra and select
qpsolverexplicitly to use them. - Fixed regularization grids can run in parallel with the OSQP builtin backend
by setting
workers. Solver setup and wide-spectrum sharpness calculations have also been optimized. - Descending kernel grids preserve positive quadrature and regularization
spacing. Adaptive searches associate RSS and sharpness with the evaluated
regularization strength and restart from the configured bounds on refit.
Setting
reg_par=Nonedisables regularization on the next fit. - Python distributions and the Conda package include the project license.
The change of default solver can change fitted distributions and the selected
regularization strength. Compare results when migrating an existing analysis;
use qpsolver="osqp" to retain the previous solver selection.
Usage
import spectrochempy as scp
# Package-level plugin APIs are available under scp.iris after installation.
results = scp.iris.batch_iris([dataset], kernel_type="langmuir", q=[-6, 1, 6])
report = scp.iris.iris_report(results[0]["iris"])
# Operations on an existing dataset are exposed through dataset accessors.
kernel = dataset.iris.kernel_matrix(kernel_type="langmuir", q=[-6, 1, 6])
The legacy flat accessor dataset.iris_kernel_matrix(...) is kept for
compatibility.
Development
pip install -e .
pip install -e "plugins/spectrochempy-iris[osqp]"
cd plugins/spectrochempy-iris
python -m pytest tests/
Metadata
Release files for spectrochempy-iris 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spectrochempy_iris-0.2.0.tar.gz | 50.2 kB | With provenance | Details for spectrochempy_iris-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spectrochempy_iris-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for spectrochempy_iris-0.2.0-py3-none-any.whl |
Total release size: 87.1 kB
Release files / spectrochempy_iris-0.2.0.tar.gz
| Download URL | spectrochempy_iris-0.2.0.tar.gz |
|---|---|
| Size | 50.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2a67d692b2303585e3e7d2da88f3f66196b5e4f7f735b1fe03c8cd904d99871
|
|
BLAKE2b-256 checksum How to use checksums |
0065b96b134f339b8344fa9308f41ee40f100d5d9fb69fa535389b2ab629f79b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / spectrochempy_iris-0.2.0-py3-none-any.whl
| Download URL | spectrochempy_iris-0.2.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a2bb460bc86113f44c53037ffc1697cfb6ca785284e5c13c1ee24d3ba4acf08
|
|
BLAKE2b-256 checksum How to use checksums |
59ce237ca7f46117bca55fd9cdade8af7eb5d089318628f7c1df8311e111667c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for spectrochempy-iris 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for spectrochempy_iris-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.