Skip to main content

Zaber module for pyobs

This is a pyobs module for selecting between named positions (e.g. instrument ports) on a Zaber linear motor.

Install pyobs-zaber

Clone the repository:

git clone https://github.com/pyobs/pyobs-zaber.git
cd pyobs-zaber

Install it with uv:

uv sync

Alternatively, with plain venv/pip:

python3 -m venv .venv
source .venv/bin/activate
pip install .

Configuration

The ZaberModeSelector class takes a dictionary of named modes mapped to motor positions, plus a required zaber block (may be empty to use all driver defaults) with parameters for the underlying Zaber driver:

modes:
    Dictionary of available modes in the form {name: position}.
zaber:
    Keyword arguments passed to the underlying ZaberDriver:
        port:
            USB port of the motor (default: /dev/ttyUSB1).
        speed:
            Velocity of the selector movement (default: 10000).
        acceleration:
            Acceleration of the selector movement (default: 800).
initial_mode:
    Mode to move to when the module opens (default: not set, i.e. the motor stays where it is).

A basic module configuration would look like this:

class: pyobs_zaber.ZaberModeSelector
name: Mode selector
modes:
  Photometry: 0
  Spectroscopy: 50000
initial_mode: Photometry
zaber:
  port: /dev/ttyUSB0

Dependencies

Metadata

Release files for pyobs-zaber 2.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyobs-zaber 2.0.5
File Size Uploaded
pyobs_zaber-2.0.5.tar.gz 182.9 kB Details

Release files / pyobs_zaber-2.0.5.tar.gz

Download URL pyobs_zaber-2.0.5.tar.gz
Size 182.9 kB
Tags Source
SHA-256 checksum
How to use checksums
729e117962e9ce72444b690f1b3d412aa4a7b21959c6ac16209b060d9d3a277a
BLAKE2b-256 checksum
How to use checksums
34de7a43e6a46a6acecc8ceb8fe6dbe7d61a8e28d3af8ddc4e1358b925882a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page