Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/user-guide/manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ from scipy import ndimage
second_deriv = sf.apply(lambda x: ndimage.gaussian_filter1d(x, sigma=1, order=2), axis=1)
```

## Baseline Estimation

Baseline estimation uses the `pybaselines` algorithms via `SpectraFrame.baseline`.
By default, baseline computation is single-threaded for maximum compatibility. If you
are running on a free-threaded Python build (or know your environment can benefit),
set `single_threaded=False` to use multithreading for the per-spectrum computations.

```python
# Single-threaded (default)
baseline = sf.baseline("arpls")

# Multi-threaded (experimental; requires thread-safe environment)
baseline_threaded = sf.baseline("arpls", single_threaded=False)
```

## Metadata Manipulation

### Adding and Removing Columns
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyspc"
version = "0.6.0"
version = "0.6.1"
license = "MIT"
description = "Tools for Spectroscopy"
authors = ["Rustam Guliev <glvrst@gmail.com>"]
Expand Down
Loading