matterlab_shakers
matterlab_shakers provides serial drivers for the shakers used in the Matter Lab. It includes a shared shaker interface and a driver for Torrey Pines temperature-controlled shakers.
Supported Devices
Shaker: shared abstract base classTorreyPinesShaker
Installation
Install the package:
pip install matterlab_shakers
For development:
pip install -e .[dev]
The package depends on matterlab_serial_device.
Quick Start
from matterlab_shakers import TorreyPinesShaker
shaker = TorreyPinesShaker(com_port="COM5")
print("Current temperature:", shaker.temp)
print("Current speed level:", shaker.speed)
shaker.temp = 40
shaker.speed = 3
shaker.idle = True
Core API
The shared Shaker interface exposes:
temptarget_tempspeedidle
The Torrey Pines driver adds:
device_modelserial_numberconnect()error_reporting(...)
Testing
Simulation Tests
Simulation tests are the default validation layer and are safe for CI.
One-click run:
python examples/test_sim.py
Direct pytest run:
pytest tests/test_base_shaker.py tests/test_torrey_pines_sim.py
Hardware Tests
Hardware tests are opt-in because real shakers may not be connected in every environment.
Available hardware test files:
tests/test_torrey_pines_real.py
They are marked with @pytest.mark.real and are skipped unless --run-real is supplied.
Example:
pytest tests/test_torrey_pines_real.py --run-real --com-port COM5
You can also provide hardware configuration through an environment variable:
SHAKER_COM_PORT
Examples
The examples/ directory contains the recommended entry points:
examples/test_sim.py: one-click simulation-only test runnerexamples/real_devices.py: readable examples for real Torrey Pines hardwareexamples/README.md: short guide to the examples directory
Development
Useful commands:
pytest
ruff check .
ruff format .
The default pytest configuration includes retries, timeouts, coverage output, and uses src as the import root for local development.
Package Layout
src/matterlab_shakers/
base_shaker.py
torrey_pines_shakers.py
tests/
examples/
License
This project is distributed under the MIT License. See LICENSE for details.
Metadata
Release files for matterlab-shakers 1.2.1
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 |
|---|---|---|---|---|
| matterlab_shakers-1.2.1.tar.gz | 9.6 kB | Without provenance | Details for matterlab_shakers-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matterlab_shakers-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for matterlab_shakers-1.2.1-py3-none-any.whl |
Total release size: 17.0 kB
Release files / matterlab_shakers-1.2.1.tar.gz
| Download URL | matterlab_shakers-1.2.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f2c41472d4e55a833404b4f092e3adca8037a98d94b96261391e4ff4ad06b70
|
|
BLAKE2b-256 checksum How to use checksums |
a2010b9b9a6e255c7d14a4e4ca804e02d36b5e2eb7daf724efea8239fec0bc43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Release files / matterlab_shakers-1.2.1-py3-none-any.whl
| Download URL | matterlab_shakers-1.2.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ac424c7166c1cc35f14fba7c9c36532a82e352bf7343316e4cc5a647514d4d8
|
|
BLAKE2b-256 checksum How to use checksums |
f14bfbf7b7217ef8f68ef4683f968134dd5d160c6cd4394a28172c75c9e80cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Security for matterlab-shakers 1.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.