ASWIFT
ASWIFT fits square-wave voltammetry (SWV) traces and extracts peak signal, background, peak voltage, full-prominence peak width, and baseline-subtracted full-prominence peak area. Use the no-code ASWIFT Viewer for interactive analysis, or install the Python package to build ASWIFT into a custom workflow.
Installation
ASWIFT requires Python 3.12 or newer. Install the core fitting utilities with:
pip install aswift
Install the viewer, pandas CSV helpers, plotting tools, and PalmSens
.pssession support with:
pip install "aswift[viewer]"
PalmSens support uses pypalmsens, which requires the
Microsoft .NET 9 Runtime.
ASWIFT Viewer
Launch the viewer from an activated Python environment:
aswift-viewer
The viewer loads CSV, JSON, and PalmSens .pssession data; fits individual or
batched voltammograms; visualizes fitted backgrounds and peaks; and exports
raw and normalized results with their associated metadata.
Under Input, enable Peak potential range to select the most prominent peak within typed lower and upper limits in volts. Leave it unchecked for automatic peak selection. Allow enough range for peak drift. A trace with no eligible peak is reported as a failed fit.
Use Normalize with typed start and end sample indices. Both limits are included, so 0–4 uses the first five samples as the reference.
Python API
import numpy as np
from aswift import aswift_fit, plot_fit_result
volts = np.asarray([...], dtype=float)
current = np.asarray([...], dtype=float)
result = aswift_fit(volts, current)
print(result.peak_signal, result.peak_voltage)
ax = plot_fit_result(result)
The returned FitResult includes the peak signal, background, voltage,
full-prominence width and area, peak profile, background profile, and combined
fitted current. ASWIFT also provides dataframe and PalmSens helpers for batch
workflows. Single-trace and batch fitting methods accept
expected_potential_range=(-0.35, -0.20) to restrict peak selection to an
inclusive potential range in volts.
Documentation and support
See the full documentation and examples on GitHub. Please open an issue for bug reports, questions, feedback, or feature requests.
Citation
If you use ASWIFT in your research, please cite:
Yates, M., Ji, J., Yee, S., & Soh, H. T. (2026). Robust Regularization Enables Automated, Real-Time Square-Wave Voltammetry Signal Quantification. bioRxiv. https://doi.org/10.64898/2026.07.25.740173
Machine-readable citation metadata is available in
CITATION.cff.
License
ASWIFT is licensed under the MIT License. See the license for details.
Metadata
Release files for aswift 1.0.4
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 |
|---|---|---|---|---|
| aswift-1.0.4.tar.gz | 1.0 MB | With provenance | Details for aswift-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aswift-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for aswift-1.0.4-py3-none-any.whl |
Total release size: 2.1 MB
Release files / aswift-1.0.4.tar.gz
| Download URL | aswift-1.0.4.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cf79d3a818173ce90b67ce1a1fa18b7d6f64708cfe55034fa8175e23c02bc5b
|
|
BLAKE2b-256 checksum How to use checksums |
f6a58a65becf88e8e3a173bf43215ab2d62b9987d6e5cc2cac6e8944c23b4037
|
| 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 5, 2026.
Transparency logRelease files / aswift-1.0.4-py3-none-any.whl
| Download URL | aswift-1.0.4-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca79eb942f221616ab7b0c767ec59ee3491e9cd367ecdacc7243e3d07acab5f9
|
|
BLAKE2b-256 checksum How to use checksums |
8aaeb7ff6cce65d86e066377965b9bd662facfddcf0db4b3b9f7508aa3fe0b0d
|
| 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 5, 2026.
Transparency logSecurity for aswift 1.0.4
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 aswift-1.0.4.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 5, 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.