python-seabreeze: Flame-S spectrometer is seen but doesn't report data

spectrometer and system information

  • model: Flame-S supposed to be the same as USB-2000PLUS I believe
  • operating system: MacOS 15.5.5
  • python version: 3.7.7 (via Anaconda)
  • python-seabreeze version: v1.1.0 I believe
  • installed-via: conda and python for anaconda

current problem

The python code only appears to communicate and give the name / serial number. No data appears to be return for .wavelengths() or .intensities(). I could easily have made a mistake somewhere in the install perhaps.

minimal code example and error (very helpful if available)

Here is example code:

  1. run code example
import seabreeze
seabreeze.use('pyseabreeze')
from seabreeze.spectrometers import list_devices, Spectrometer

devices = list_devices()

print (devices)
 
spec = Spectrometer.from_serial_number("FLMS16723")

spec.open()


spec.wavelengths()
data = spec.intensities(correct_dark_counts=True, correct_nonlinearity=True)

print ("Dim: ", data.ndim)
print ("Shape: ", data.shape)
print ("size: ", data.size)

data[0]
data
spec.close()
  1. Output:
[\<SeaBreezeDevice USB2000PLUS:FLMS16723\>]
Dim:  1
Shape:  (2048,)
size:  2048

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

No worries ๐Ÿ˜Š Iโ€™m quite busy currently too, and weโ€™re not at all in a rush. Iโ€™ll see if I can put together a guide on how to setup everything needed for running tests on macos ๐Ÿ˜ƒ

Cheers, Andreas ๐Ÿ˜ƒ