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.1

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.1
File Size Uploaded Provenance Actions
onepix_avenirphotonics_spectrometer-0.1.1.tar.gz 19.2 kB Without provenance Details for onepix_avenirphotonics_spectrometer-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 41.3 kB

Release files / onepix_avenirphotonics_spectrometer-0.1.1.tar.gz

Download URL onepix_avenirphotonics_spectrometer-0.1.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cc813ba8f515918254d11e832818c28601115bf74d3c1a34702e161746c6bed0
BLAKE2b-256 checksum
How to use checksums
869f4e41024d4d14fb6fd17ef6b0befe699e350656a59e7bdf5639cf1ccc9891
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.1-py3-none-any.whl

Download URL onepix_avenirphotonics_spectrometer-0.1.1-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef5ebac50e3d753bea38eca6704ab42ca7f2955bc81420c86bbb5f117551debb
BLAKE2b-256 checksum
How to use checksums
6c7a67e1eb9849fa503ae9ae89f8b42499b47ba0c5e084f7bb60e3438ebe0751
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.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.

Release history Release notifications | RSS feed

This release

0.1.1 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