Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically limit max ep size #198

Merged
merged 2 commits into from
Jun 11, 2023
Merged

Dynamically limit max ep size #198

merged 2 commits into from
Jun 11, 2023

Conversation

ap--
Copy link
Owner

@ap-- ap-- commented Jun 11, 2023

This should fix overflowerrors as in:

Closes #190
Closes #193
Closes #174
Closes #47

Replaces #183

@ap-- ap-- merged commit e2aceee into main Jun 11, 2023
9 checks passed
@drmcnelson
Copy link

Great, how do we upgrade on a linux host to use the new version?

@drmcnelson
Copy link

Never mind, "pip install seabreeze -U" picks up version 2.4.0, and pypi.org shows it was updated June 11, 2023. Will test it momentarily.

@ap-- ap-- deleted the dynamically-limit-max-ep-size branch September 20, 2023 20:14
@maitra-dipankar
Copy link

My apologies for going back to the stubborn USB650 units (we've got two of those!).

  • model: RedTide 650
  • operating system: Ubuntu 22.04.4 LTS
  • python version: 3.9.16 (installed via anaconda)
  • python-seabreeze version: 2.8.0 (installed via anaconda)

Here's my code:

import seabreeze
seabreeze.use('pyseabreeze')
from seabreeze.spectrometers import Spectrometer as sm
spec = sm.from_first_available()
print(spec)

spec.integration_time_micros(int(4e5))

wavelengths = spec.wavelengths()
intensities = spec.intensities()

import matplotlib.pyplot as plt
plt.plot(wavelengths, intensities)
plt.show()

When I run it, I sometimes get the "usb.core.USBError: [Errno 75] Overflow" exactly as described in #47, sometimes I get real data, and sometimes I get a constant intensity value of 2409 for all channels. Any thoughts if/how I can fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants