A python library/GUI to access and control OceanOptics spectrometers
Project description
pyOceanopticsSpectrometer
pyOceanopticsSpectrometer is a Python library/GUI interface to control several models of spectrometers from Ocean Optics. The package is composed of two parts, a
low-level driver to perform basic operations, and high-level GUI, written with PyQt5, which can be easily embedded into other GUIs. It heavily relies on the package python-seabreeze.
The interface can work either as a stand-alone CLI or GUI application, or as a module of ergastirio.
The list of devices supported can be found in the table in the readme file of python-seabreeze, with either the `cseabreeze' or 'pyseabreeze (usb)' backend.
Table of Contents
Installation
Use the package manager pip to install,
pip install pyOceanopticsSpectrometer
This will install all required libraries, included seabreeze. To finalize the installation of seabreeze, additional steps are required (see also instructions in python-seabreeze):
- Run the command
seabreeze_os_setupin any terminal - Install
pip install pyusb - Install
pip install libusb - If you run into errors when running the application, you might need to manually install libusb1. Go here, Downloads -> Latest Windows Binaries. In the zip file, enter either the folder MinGW64/dll or MinGW32/dll (depending on your OS). Copy the file
libusb-1.0.dllintoC:\Windows\System32.
The package seabreeze uses two different backends (cseabreeze and pyseabreeze (usb)), and some devices are compatible with only one of them (see table in readme file of python-seabreeze). By default, pyOceanopticsSpectrometer uses the backend pyseabreeze (usb), which is referred to as just pyseabreeze in the code. To change this to cseabreeze, after installation, go to the directory which contains the code of pyOceanopticsSpectrometer, open the file config.json, and change the value of "backend" from pyseabreeze to cseabreeze.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyoceanopticsspectrometer-0.5rc1.tar.gz.
File metadata
- Download URL: pyoceanopticsspectrometer-0.5rc1.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3280bfdb017c4a1f732a7cfafe818f1a502a266f24faea6cbe73d559e7d433cb
|
|
| MD5 |
b42e7996ddb51cabcf6696fba3890e62
|
|
| BLAKE2b-256 |
7ef6719fdcbcb473afb6d0aff0d3a4df2041a5899d2602b230619ba8d546fdb4
|
File details
Details for the file pyoceanopticsspectrometer-0.5rc1-py3-none-any.whl.
File metadata
- Download URL: pyoceanopticsspectrometer-0.5rc1-py3-none-any.whl
- Upload date:
- Size: 67.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bbccb360a3a927149944e98fbb98327454970b379716b42005aeec4e41a871e
|
|
| MD5 |
203b6fa54fdfecb2987eaa4a744d69c5
|
|
| BLAKE2b-256 |
a93a1cff7b544ec57efa764f821e6ec23078fc0f5099d4a35f347b32ae3e3d26
|