Skip to main content

A Python API for the rotavaps in the Matter Lab.

Project description

Matter Lab Rotavaps

matterlab_rotavaps provides Python drivers for rotary evaporators used in Matter Lab automation workflows.

The package currently includes:

  • Rotavap: abstract base class for rotavap interfaces
  • IKARV10: serial driver for the IKA RV10 rotavap

Installation

Use the matterlab conda environment and install the package in editable mode during development:

pip install -e .[dev]

The package depends on matterlab_serial_device for serial communication.

Quick Start

from matterlab_rotavaps import IKARV10

rotavap = IKARV10(com_port="COM4", max_rpm=200)
print(rotavap.name)
print(rotavap.rpm)
rotavap.interval = 5
rotavap.timer = 1
rotavap.rpm = 80
rotavap.standby()

Testing

Simulation tests are the default and are the only tests intended for CI enforcement.

One-click local sim run:

python examples/test_sim.py

Direct pytest run:

pytest

Real hardware tests are present for manual validation but are skipped unless explicitly enabled.

Run real tests with a COM port:

pytest tests/test_ika_rotavap_real.py --run-real --com-port COM4

You can also provide the port through an environment variable:

set ROTAVAP_COM_PORT=COM4
pytest tests/test_ika_rotavap_real.py --run-real

Examples

Additional examples live in examples/README.md:

  • examples/test_sim.py for the sim suite
  • examples/real_devices.py for readable hardware usage examples

Development Notes

  • Source code lives under src/
  • Pytest uses src as the import root
  • Hardware-backed tests are marked with @pytest.mark.real
  • Generated coverage, build, and cache artifacts are ignored

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matterlab_rotavaps-1.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matterlab_rotavaps-1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file matterlab_rotavaps-1.1.0.tar.gz.

File metadata

  • Download URL: matterlab_rotavaps-1.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for matterlab_rotavaps-1.1.0.tar.gz
Algorithm Hash digest
SHA256 06d3b204ab4a499e916026917deaeb3851a9812cf71ca458c361d1a05c9c794c
MD5 7a742701ccb903d62d6802d68e124d54
BLAKE2b-256 e48b3205edf551ca8adf36664d69e05b843682428f76cadde4d966ad99ce6f31

See more details on using hashes here.

File details

Details for the file matterlab_rotavaps-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matterlab_rotavaps-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a29a640a9a9c51a5f473f53fdd81c005870bf396547a69583a73db2128263b
MD5 dec9d049fff5d73431c4e2f21cc886b9
BLAKE2b-256 ffeb891442694b0e0cd6104d14af3df3a933f52283f9ac91a011c62b1b2c896b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page