Skip to main content

Python interface module for Ocean Optics spectrometers. This software is not associated with Ocean Optics. Use it at your own risk. Modified by Michael Carter for use with Amassian Research Group Opentrons.

Project description

Python module for Ocean Optics spectrometers

Conda (channel only) PyPI AppVeyor Travis Github All Releases PyPI - Downloads MIT license GitHub issues Github Sponsors

Python-seabreeze is the easy way to access your Ocean Optics spectrometers from python. It wraps the SeaBreeze library provided by Ocean Optics to communicate with the spectrometer. It also provides a pyUSB based reimplementation of SeaBreeze for easy extension. This software is not associated with Ocean Optics. Use it at your own risk.

DOCUMENTATION ON RTD

You'll find the documentation and more detailed information here https://python-seabreeze.readthedocs.io/en/latest/

Changes

The changelog can be found here CHANGELOG.md

Install

# via pypi
pip install seabreeze-opentrons
seabreeze_os_setup

Usage

The following example shows how simple it is to acquire a spectrum with python-seabreeze through the model independent Spectrometer class. For a more detailed description read the documentation:

>>> from seabreeze.spectrometers import Spectrometer
>>> spec = Spectrometer.from_first_available()
>>> spec.integration_time_micros(20000)
>>> spec.wavelengths()
array([  340.32581   ,   340.70321186,   341.08058305, ...,  1024.84940994,
        1025.1300678 ,  1025.4106617 ])
>>> spec.intensities()
array([  1.58187931e+01,   2.66704852e+04,   6.80208103e+02, ...,
         6.53090172e+02,   6.35011552e+02,   6.71168793e+02])

To use the pyseabreeze backend (requires pyusb) simply run this before importing seabreeze.spectrometers.

>>> import seabreeze
>>> seabreeze.use('pyseabreeze')
>>> import seabreeze.spectrometers as sb

Supported Devices

Spectrometer cseabreeze pyseabreeze
HR2000 x x
HR2000PLUS x x
HR4000 x x
JAZ x x
MAYA2000 x x
MAYA2000PRO x x
MAYALSL x x
NIRQUEST256 x x
NIRQUEST512 x x
QE65000 x x
QE-PRO x x
STS x x
TORUS x x
USB2000 x x
USB2000PLUS x x
USB4000 x x
USB650 Issue #47
SPARK x x

Known Issues

  • USB2000 spectrometers cause Data transfer error due to old firmware Issue #48
  • USB650 not supported Issue #47
  • No conda packages for armv6 (RPI version 1) Issue #46

Contributing Guidelines

If you run into any problems, file an issue and be sure to include the following in your report:

  • Operating system (Linux distribution, Windows version, OSX version) and archictecture (32bit, 64bit, arm)
  • Python version and arch (i.e. Python 2.7.10 64bit)
  • python-seabreeze version

If you want a feature implemented, please file an issue, or create a pull request when you implement it yourself. And if you would like to support me via paypal, click on the paypal donate button on top of this README.

License

Files in this repository are released under the MIT license.

Related Repositories

If you want me to add your project here, let me know. Happy to add it.

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

seabreeze-opentrons-0.1.1.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

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

seabreeze_opentrons-0.1.1-cp37-cp37m-win_amd64.whl (505.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file seabreeze-opentrons-0.1.1.tar.gz.

File metadata

  • Download URL: seabreeze-opentrons-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.6

File hashes

Hashes for seabreeze-opentrons-0.1.1.tar.gz
Algorithm Hash digest
SHA256 501fa2052f5c54dc61e9d095c2ec485b51d3c79064d770fe38f91c7a54c6bb89
MD5 3d677a1618a26290a3e9cae3fbd9bbc3
BLAKE2b-256 92fe80d0a1bad971493618f962c4dd96a0e7f84dc4ad7a3cc872d4dd9ac5feb4

See more details on using hashes here.

File details

Details for the file seabreeze_opentrons-0.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: seabreeze_opentrons-0.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 505.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.6

File hashes

Hashes for seabreeze_opentrons-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 501d6b18f4c669a64041b196b1769e5e07ae637ede31706af7fb1bcb971f05ec
MD5 903d7888886c57458ce142903ae2c447
BLAKE2b-256 8a8edf2ded305df69f6dfd8fc20201d76178cdcc594dcea8d10ca9644b9aa751

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