electrochemistry-bluesky
Bluesky control of battery experiments on a Keithley 2460 SourceMeter: galvanostatic and potentiostatic cycling, state-of-charge positioning, and current pulses with rests. The instrument runs each sequence on its own (timing, voltage cutoffs, step markers, output OFF at the end); the computer prepares, starts and reads it. Usable at the bench and alongside other instruments through the 2460's START, READY, BUSY and MARKER lines.
Excel run sheet + session file (limits)
│
Bluesky QueueServer queues one plan per run-sheet row
│
Bluesky RunEngine run_sequence plan ──► HDF5 run file, live plot
│
SequenceFlyer ┐
│ │ keithley2460-ophyd
2460 sequencer backend ┘ ─or─ simulated backend (synthetic cell, this package)
│
TSP runtime on the 2460 trigger model: timing, cutoffs, markers, output OFF
- Protocols and run sheets.
rest,soc_position,pulse_train,bipolar_pulseandcycling(with an optional CV hold), written as rows of an Excel workbook and validated against the limits in a session file (TOML). - QueueServer deployment. A startup that turns run-sheet rows into queued runs; the RE Manager worker is the only owner of the instrument.
- Data. One HDF5 file per run (NeXus-style, readable while it is written) with every reading, the events and the full settings; recovery of a run whose host crashed; a viewer notebook to follow and compare runs.
- Optional Tiled store of every run's documents, either a local persistent store beside the run files or an existing Tiled server.
- A simulator with a synthetic cell, so the whole stack runs and is tested without hardware.
The instrument layer (Flyer, sequence models, 2460 backend and its packaged TSP runtime) is the separate package keithley2460-ophyd.
Status: alpha; not yet released on PyPI. The sequencer path has run on a 2460 with a resistor and with electrochemical cells.
Quickstart
Needs uv, git and redis. uv installs Python 3.14 itself.
git clone https://github.com/BAMresearch/electrochemistry_bluesky.git
cd electrochemistry_bluesky
uv sync --locked --extra visa --extra queueserver
source .venv/bin/activate
oe-template runs.xlsx
oe-validate runs.xlsx --session qserver/session-simulator.toml
The Quickstart continues from there: run the rows through the QueueServer on the simulator and look at the data.
Safety
Each session file sets an absolute voltage window and a maximum current; every
row is validated against them before anything reaches the instrument, and the
2460 stops the run with the output OFF if a reading leaves the window. Output-off
mode is HIGH-Z. Loading a session is the confirmation for every run in it:
load one only for the instrument, wiring and cell actually connected. The example
session in qserver/ is deliberately not runnable until you fill it in. See
Sessions and At the instrument.
Documentation
- User guide: quickstart, run sheets, sessions, the procedure at the instrument, data and the viewer, command reference.
- Technical documentation: which component does what, the simulator, testing and development.
Build the documentation site with uv run --locked mkdocs build --strict.
Acknowledgments
Parts of the code were implemented with the assistance of OpenAI Codex and Anthropic Claude, and were reviewed and tested by the authors. We are aware that tools of this kind are built on knowledge and code contributed by people who were never asked, and who cannot be credited individually here. We thank them nonetheless.
License
Metadata
Release files for electrochemistry-bluesky 0.1.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 |
|---|---|---|---|---|
| electrochemistry_bluesky-0.1.0.tar.gz | 126.6 kB | With provenance | Details for electrochemistry_bluesky-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| electrochemistry_bluesky-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for electrochemistry_bluesky-0.1.0-py3-none-any.whl |
Total release size: 197.9 kB
Release files / electrochemistry_bluesky-0.1.0.tar.gz
| Download URL | electrochemistry_bluesky-0.1.0.tar.gz |
|---|---|
| Size | 126.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84dea30eec8c7b272af63b8fdb2e5eb529e5d68db3f3b3865660c0eb408e9503
|
|
BLAKE2b-256 checksum How to use checksums |
7bf932c84aabb86e0747e782fbabbcc4f5c2dad29b0c27a96717a14457e9788d
|
| 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 16, 2026.
Transparency logRelease files / electrochemistry_bluesky-0.1.0-py3-none-any.whl
| Download URL | electrochemistry_bluesky-0.1.0-py3-none-any.whl |
|---|---|
| Size | 71.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68009a82957e0beefcdb692ae0e9fd63564fb58114bcf8e70f38e1c1d57c06c9
|
|
BLAKE2b-256 checksum How to use checksums |
6a7f7bd2fcc585317ba3953ea531c8d44ca156437bf1447a37f6d1a6521801e6
|
| 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 16, 2026.
Transparency logSecurity for electrochemistry-bluesky 0.1.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 electrochemistry_bluesky-0.1.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 16, 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.