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
- pyobs-core for the core functionality.
- zaber-motion for communicating with the motor.
Metadata
Release files for pyobs-zaber 2.0.6
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 |
|---|---|---|---|---|
| pyobs_zaber-2.0.6.tar.gz | 182.8 kB | Without provenance | Details for pyobs_zaber-2.0.6.tar.gz |
Release files / pyobs_zaber-2.0.6.tar.gz
| Download URL | pyobs_zaber-2.0.6.tar.gz |
|---|---|
| Size | 182.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bb8c16623a235edd78d88371d0c993dc630d95c75e6a55aa4472cba41995c4b
|
|
BLAKE2b-256 checksum How to use checksums |
c87294871f4f6a0635f5ca9c5c545224198e901a7e31c5dbf0ac5c8f556652cc
|
| 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}
|
Security for pyobs-zaber 2.0.6
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.