Skip to main content

Avenir Photonics spectrometers for ONE-PIX

ONE-PIX spectrometer plugin for the Avenir Photonics spectrometers: Aris (compact USB spectrometer), Siena (miniature NIR spectrometer, uncooled InGaAs, up to 900–2100 nm), and the other spectrometers speaking the ZioLink protocol.

The plugin talks to the device directly over USB with pyusb (ZioLink protocol, written from the Avenir Photonics SDK 1.1.2). No vendor library is needed.

Installation

From ONE-PIX's Plugins page, or:

pip install onepix-avenirphotonics-spectrometer
sudo apt install libusb-1.0-0     # USB backend of pyusb, if missing

Then, in ONE-PIX's Hardware settings page, choose avenirphotonics as the spectrometer.

USB access (udev)

Without udev rules, the spectrometer is only accessible as root. The rules file ships with the package, in the AvenirPhotonics folder:

sudo cp 52-avenirphotonics.rules /etc/udev/rules.d/
sudo udevadm control --reload && sudo udevadm trigger

Then unplug and plug the spectrometer back. Close the Inspective software if it uses the spectrometer.

Model USB vendor:product
Aris 354f:0101
Siena 354f:0104
other ZioLink spectrometers 354f:0100–01ff (except 0103)

How a measurement works

The spectra are raw counts, like the other ONE-PIX spectrometer plugins. When the device is opened, the plugin switches off the on-board processing: auto exposure, dark subtraction, and intensity units other than counts. A spectrum in another unit, for example set by another program, is refused.

The device integrates on command: each spectrum ONE-PIX asks for starts a new exposure, so it never predates the request. Spectra left in the device by an interrupted measurement are read and dropped first. The plugin asks the device for its status only once the integration time has elapsed, then every 2 ms, so USB is not flooded.

The integration time is given in microseconds to the device; its limits are read from the device.

Settings (optional)

~/.onepix/avenirphotonics.json, or the path given by ONEPIX_AVENIR_CONFIG:

Key Default Meaning
serial "" Serial number of the spectrometer to open when several are plugged in.
averaging 1 Spectra averaged by the device for each measurement. A measurement lasts averaging x the integration time.
sensor_gain null Sensor gain, if the device supports it. null keeps the device's value.

Quick check with a device

python -m AvenirPhotonics

It opens the spectrometer, prints its model, serial number, wavelength range and the first values of a 20 ms spectrum.

The Aris subtracts an electronic baseline itself (header field dark_avg), even with its dark subtraction off: with almost no light, the counts are a few tens around zero, possibly negative.

Tests

The tests use a simulated ZioLink device, so no spectrometer is needed:

pip install -e ".[test]"
python -m pytest tests

Metadata

Release files for onepix-avenirphotonics-spectrometer 0.1.0

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

Source distribution (sdist)

Source distribution for onepix-avenirphotonics-spectrometer 0.1.0
File Size Uploaded Provenance Actions
onepix_avenirphotonics_spectrometer-0.1.0.tar.gz 18.9 kB Without provenance Details for onepix_avenirphotonics_spectrometer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for onepix-avenirphotonics-spectrometer 0.1.0
File Interpreter ABI Platform Actions
onepix_avenirphotonics_spectrometer-0.1.0-py3-none-any.whl Python 3 none any Details for onepix_avenirphotonics_spectrometer-0.1.0-py3-none-any.whl

Total release size: 40.9 kB

Release files / onepix_avenirphotonics_spectrometer-0.1.0.tar.gz

Download URL onepix_avenirphotonics_spectrometer-0.1.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
220163df4c5eb02e4dc4e128ca9596a81b7bd98069bf6cd06aa6ef0713ac122a
BLAKE2b-256 checksum
How to use checksums
8ca958c3567e67b8299cba1fff3f19917b8f244388cbae7dede9318f98a69cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / onepix_avenirphotonics_spectrometer-0.1.0-py3-none-any.whl

Download URL onepix_avenirphotonics_spectrometer-0.1.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c59854361ccfda1900d4fab8f4ed64df1e89cab3e9429b5452f208fb471e5fb
BLAKE2b-256 checksum
How to use checksums
8b87ed7740060fe8bba97e8176c572636d110398c55e0b00d2354945f7d726bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for onepix-avenirphotonics-spectrometer 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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