• Stars
    star
    194
  • Rank 200,219 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created about 10 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python module for OceanOptics spectrometers

Python module for Ocean Optics spectrometers

Conda (channel only) PyPI test build deploy 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
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 ap--/python-seabreeze#47
SPARK x x
ADC1000 x
SR4 x
ST-VIS 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.

More Repositories

1

python-live-plotting

Python2 examples for plotting incoming data
Python
24
star
2

python-oceanoptics

*discontinued* Python module for oceanoptics spectrometers
Python
20
star
3

voltcraft

Python module for voltcraft powersupplies
Python
8
star
4

terminalpoint

It's like powerpoint for your terminal but without any features
Python
5
star
5

nvjpeg2k-numcodecs

nvJPEG2000 numcodecs playground
Cython
4
star
6

leave-org-keep-contributions

When you leave a GitHub organisation and want to make sure to keep your contributions
Python
2
star
7

cookiecutter-ap-pypackage

Make a Python package the way Andreas would make one.
Python
2
star
8

teaching-python-aidd-adv-oct-2021

Python Advanced (numpy, decorators, network)
Python
2
star
9

PyStepRocker

Python TMCL Interface for the StepRocker stepper motor driver
Python
2
star
10

md2ipynb

markdown to IPython notebook converter
Python
2
star
11

teaching-git-aidd-mar-2024

My AIDD 2024 introduction to git talk
2
star
12

webflipflapp

fruit fly stock management pdf label generator appspot app
Python
1
star
13

concatenated-zlib

playground to test decompression of concatenated zlib chunks
Cython
1
star
14

seabreeze-c-backend

(wip) extracted libseabreeze backend for python-seabreeze
C++
1
star
15

teaching-python-aidd-qa-oct-2021

Python: Questions and Answers
1
star
16

libseabreeze

Github clone of https://sourceforge.net/p/seabreeze
Shell
1
star
17

pado-tcga

pado dataset for The Cancer Genome Atlas on aws opendata
Python
1
star
18

shiny-deseq2

I wanted to learn R and shiny, so I made a not so shiny deseq2 app
R
1
star
19

colab-playground

Jupyter Notebook
1
star
20

ordest

not the best OrderedSet in the world --- this is just a tribute
Python
1
star
21

automations

Automating some things I do on GitHub
1
star
22

latexlabels

print pretty labels for Avery 3667 label paper using latex.
1
star
23

mdpp

one file markdown preprocessor
Python
1
star