Python interface module for Ocean Optics spectrometers. This software is not associated with Ocean Optics. Use it at your own risk.
Project description
Python module for Ocean Optics spectrometers
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
seabreeze_os_setup
or
# via conda
conda install -c conda-forge seabreeze
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.
- python-seatease by @jonathanvanschenck - a software emulator of python-seabreeze. Emulates seabreeze's behavior so for testing my code without access to a spectrometer.
- python-seabreeze-server by @jonathanvanschenck - a TCP-based server to host the seabreeze.cseabreeze backend, allowing multiple clients (potentially offsite) to interact with a single spectrometer.
- SeaBreeze - Ocean Optics' SeaBreeze C library.
- libseabreeze - github clone of the C library. internal use only (has pre-built libraries if you know what you're doing)
- python-seabreeze-feedstock - anaconda feedstock for automated package deployment. internal use only
- yaqd-seabreaeze - A seabreeze interface for the yaq instrument control framework
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 Distributions
Hashes for seabreeze-2.0.0-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc75c79a664714ededf809a821b5af3586b1e1bcec2fb916b864ee22b2f6ae17 |
|
MD5 | 2349f7a3e742c93e4e08c1ca71eef753 |
|
BLAKE2b-256 | f0ccb0f964d5b53e9c2195c496f5ca48a8295b5b434c84b880ab2778b9bbf833 |
Hashes for seabreeze-2.0.0-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b59f025d81b03c8f10cc8906d41ac99cdde464a4755db143b2109ebe7cd102 |
|
MD5 | d76daa8d9894aec9f04334966b7ebd0d |
|
BLAKE2b-256 | 887ecc3a37e1f4365c7cbbf881d51b7f5068ff034f59ff5c2cceae24764c5d99 |
Hashes for seabreeze-2.0.0-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d687a232fbe7178ace397972337fe6c27f75bfb9ed246b998b455b16c1c5bb5 |
|
MD5 | fb477bb15502ed35b2d595be3b3aa2e7 |
|
BLAKE2b-256 | a07620dafa6b63c771d2256bd819eaa96fbfe8721ecc001971975b6d23fc4d0f |
Hashes for seabreeze-2.0.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f238439bea84f8f879f04a1750c18b927ecb231d6eaf01dff5ed0b35257e0708 |
|
MD5 | 8e066e0e9d6c31c66951069a2b5b891e |
|
BLAKE2b-256 | 21bbec2b09117e70e530733b92afe902c9f9860627f5392bc7bfbd950f1e28ec |
Hashes for seabreeze-2.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9f35eb7c140a2b98911e95fe627bbe9e08bcfe2ca86ee31f74d2a3964eafbdc |
|
MD5 | 6935deb824f421d07a7ea6dca0d58b40 |
|
BLAKE2b-256 | 71c081f66ff4cb66966532dc5623742fd647151fb933399817a548350566e306 |
Hashes for seabreeze-2.0.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c42bc538cac538cbbf93c1588a7193ea1ab70f322d325450d9a7f04fd583ff14 |
|
MD5 | 22e9652f2e0486a6b92a2ea69d0b4b60 |
|
BLAKE2b-256 | 62b375a6f7eccf10df68a077a8b44a6c2dd7b34905b575e3022f7b59e3c1576b |
Hashes for seabreeze-2.0.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1b5274407450d38cd6ff96c6054c1baa0d198a2061740efb63ab33106bb63d |
|
MD5 | 2502de09c447a914bdd5ef53ef97df35 |
|
BLAKE2b-256 | 9307c91d096f58375e504f6cbb1c2dc9b3ce5eaa7ac67b9797fa23bf9af19588 |
Hashes for seabreeze-2.0.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742c002d07b9b2bb762a0004766806e8eeef0d3bd83b0dca17dc252331ef3ddc |
|
MD5 | aa8b97b482261f5c3da00b004fe928c8 |
|
BLAKE2b-256 | 319f02bcbdb6e592c88b0d1aeeb3fe5e9f5a39254f5917e5c209f999eca256d7 |
Hashes for seabreeze-2.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dccf5ff5dddf2d717172bcae7124902f7c045aeb07fb0d33298208b4ec2e50b |
|
MD5 | 184840b72f2cd82b65b48e7d59331c3a |
|
BLAKE2b-256 | ab519775c7aaac0720fe4528540ec0820ab4527824e6fea08be41a0fba3da4b6 |
Hashes for seabreeze-2.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48fbb3d50a3bbb4e6771f31e3bf636c1e3acafc4b4b99a96dd1d3651ce88febd |
|
MD5 | 360b9d2c56f4f9d3f3a696e46e17b327 |
|
BLAKE2b-256 | 8444847e33ce38652595b2cdffa1e359353152adc26eee6111df3c788e1965b5 |
Hashes for seabreeze-2.0.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac51573a4aa68f1e5062baece903378e997c76060e5f68a2fe4dff46f8c56b99 |
|
MD5 | 292d55fffb198498965096712878f5f6 |
|
BLAKE2b-256 | 6adeef3ffa877a45b4251f8037a708fde9de724f72fc84d054dce2b5a0457b5d |
Hashes for seabreeze-2.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b02df264792dbed2096107cc9008bf207d2f59da1023baa22fd3b3a44330b5 |
|
MD5 | ebe832c984896c35002d8322f634f8f5 |
|
BLAKE2b-256 | 064d5a6e96d8c4140208f602bb2906f1548d9a51758bdbea17cdc9998bb24435 |
Hashes for seabreeze-2.0.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9719b7400062a66d3168af60d760e540593eebf96fd63a743512c0d2749e0907 |
|
MD5 | 9e1f26256f31c6859ae7b7037ebee5f2 |
|
BLAKE2b-256 | b0cf2ec5fd32dc798d41362b81d73214a705bc2d93e424659e412ee9a122a5f1 |
Hashes for seabreeze-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef2016f42945e5bbff3a6139213a45c0e855f4ae86f219bff41c09fbce32087 |
|
MD5 | e1e8f4f51dc063c4738e491d7c2923a7 |
|
BLAKE2b-256 | 91532ea89b8ee8af57af59e4629930f75473298f279155fd826c3e9e3b9d8c08 |
Hashes for seabreeze-2.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759bcf1f5c38d5eb335af9dcd2d58c9ca65be335dee57b306c509e0a81cc5e26 |
|
MD5 | 2cbf48984cb3bd90fcbf3bf06a8cedb9 |
|
BLAKE2b-256 | e91df21aa0d943ca61eaad0288fe1cbde4a361118ad7fb5f936438c92479afd1 |
Hashes for seabreeze-2.0.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34d2ce6ce5af61a1f1c1200466fa41570a4bc03546a72f446df8be3f7da720a |
|
MD5 | 612d6b0c9da92a94a5bdc208ac80db8b |
|
BLAKE2b-256 | fafe949cefb44199bbb91c7dc6064db972b9e72bcf5bbd61eb7af2a0b1ccf93f |
Hashes for seabreeze-2.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf964695a7ea4f341276f93bbe0177cfdc0927e552957c1892ec9630b802941 |
|
MD5 | dd44c0d00d4a4db1eaedebc7157a2bf4 |
|
BLAKE2b-256 | fb5bb3472d0991b73508028c4055121fda3a0a4aa4561a7f5f660dc066251406 |
Hashes for seabreeze-2.0.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136ef1979f38c87a9860bd6b8f61122c231d6d7901ddbdd9899b1007e917ea08 |
|
MD5 | 0f4396b3762debeb5ecb18445d8da887 |
|
BLAKE2b-256 | 59dc3d641e609bf2674527b42f3f38622a79a0e71ad6b5d9768e476082417faf |
Hashes for seabreeze-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbc2786be365b7b54ae99bda7a0c1531a7258888ad489bb160a93a83a08cb0ae |
|
MD5 | e65f86e46a78d2ea14e1b6ee8a4b4764 |
|
BLAKE2b-256 | 095a2ddad5c03168d227d8dbf36d998011036b9744a1fd837042729db7f2c183 |
Hashes for seabreeze-2.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6030ceafe0c95461e99b48bc1ff02ff842390923e8faa0211d60d0a6632779b7 |
|
MD5 | 9f95ba2f5d3faca0786789fc4c086304 |
|
BLAKE2b-256 | af3e3134716b15c5771c518f95201ecd2eea69639f1b21be77345acc0394f92a |
Hashes for seabreeze-2.0.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ee7b462b6909fb062a1bbb31cf310459f972d20d61f93100467d4a2677c5d8 |
|
MD5 | df716d761f22d47b6309d4e66e8a857a |
|
BLAKE2b-256 | 4f42eba3cdcbdbbb4a7926d892161ae58322affe30f676d4bf49a7d4aa7c18be |
Hashes for seabreeze-2.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1c9f2a4720dd3eb4b6a7878f46eba300f33a0576fe3f5a005b16749f9c6d39 |
|
MD5 | 9762c47f122b7babfd95d87fc4f7fec0 |
|
BLAKE2b-256 | a0509cf99adfc86dd0de0b419854e14592b2d6cc95c43d7ccc46c5772541cba3 |
Hashes for seabreeze-2.0.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c77dd5c71018fe7c155847c4f4db9ded766a3fb386e7f3a5ed0b7354dad5ed9b |
|
MD5 | 8d4d85e18cec9a0ae887630f62f2444c |
|
BLAKE2b-256 | fda09ff6bcde87d2c8f856bc1bdb235084db239daff9dafbbe098109363a1dfd |
Hashes for seabreeze-2.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcc1401c64294b3aa82d65636e6b51303a8d82e70b698f7e0c26549907d6ea5 |
|
MD5 | ef46b35e559f2f587403da45ca124073 |
|
BLAKE2b-256 | 80fd484aebaa157cc5e9bede36ca6e72230775e14fd03dac6966458bd36f6abc |