Skip to main content

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_setup in 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.dll into C:\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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyoceanopticsspectrometer-0.5rc1.tar.gz (69.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyoceanopticsspectrometer-0.5rc1-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

Details for the file pyoceanopticsspectrometer-0.5rc1.tar.gz.

File metadata

File hashes

Hashes for pyoceanopticsspectrometer-0.5rc1.tar.gz
Algorithm Hash digest
SHA256 3280bfdb017c4a1f732a7cfafe818f1a502a266f24faea6cbe73d559e7d433cb
MD5 b42e7996ddb51cabcf6696fba3890e62
BLAKE2b-256 7ef6719fdcbcb473afb6d0aff0d3a4df2041a5899d2602b230619ba8d546fdb4

See more details on using hashes here.

File details

Details for the file pyoceanopticsspectrometer-0.5rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyoceanopticsspectrometer-0.5rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bbccb360a3a927149944e98fbb98327454970b379716b42005aeec4e41a871e
MD5 203b6fa54fdfecb2987eaa4a744d69c5
BLAKE2b-256 a93a1cff7b544ec57efa764f821e6ec23078fc0f5099d4a35f347b32ae3e3d26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page