-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
HR4000 returning data transfer error #69
Comments
Hmm, that's definitely unexpected. https://python-seabreeze.readthedocs.io/en/latest/contributing.html#testing-spectrometer-models And post the output here. Also if you could make a pull request updating the documentation with the workaround you had to do to install the unsigned drivers, that would be great :) Best, |
I've run the tests. First tests: Second test For the workaround, I will do when I have time (even though I'm not sure whether it is necessary to do so as installing the unsigned drivers didn't change much - though I believed it was the problem). Best. |
Strange. I think something might be wrong with your conda environment.
Best, |
Here the complete steps: Important points: First an error occured when running seabreeze_os_setup in the new env. Fortunately, it does not make any problem as the drivers where previously installed and the installation is system wide. Next, you can ignore the first run of python setup.py pytest as I didn't plugged in the spectrometer yet. Finally, the test end up testing the intensities and got stuck. It didn't respond anymore so that I needed to close the terminal. Any Idea ? EDIT:
|
Okay, seems the pyseabreeze tests get stuck on reading the spectrum... In your conda environment, with the spectrometer attached, can you try: >>> import seabreeze
>>> seabreeze.use('cseabreeze')
>>> from seabreeze.spectrometers import Spectrometer
>>> spec = Spectrometer.from_first_available()
>>> spec.intensities()
array([1498., 1503., 1498., ..., 1495., 1500., 1504.])
>>> spec.intensities()
array([1499., 1500., 1502., ..., 1494., 1502., 1504.])
>>> spec.intensities()
array([1503., 1499., 1508., ..., 1500., 1506., 1501.]) this just tests if cseabreeze works with your spectrometer. Close the interactive session afterwards. and then try in a new python shell: >>> import seabreeze
>>> seabreeze.use('pyseabreeze')
>>> from seabreeze.spectrometers import Spectrometer
>>> spec = Spectrometer.from_first_available()
>>> spec.intensities()
array([1498., 1503., 1498., ..., 1495., 1500., 1504.])
>>> spec.intensities()
array([1499., 1500., 1502., ..., 1494., 1502., 1504.])
>>> spec.intensities()
array([1503., 1499., 1508., ..., 1500., 1506., 1501.]) which tests the same with the pyseabreeze backend. |
Hi. So, I have tested the backends several times (see below why). pyseabreeze does not work: From here, I think this is ok for me to start my project using cseabreeze. Thanks for helping me ! |
Interesting. And happy that it works now :) So I think the issues are:
But I think we can close this issue now 👍 Open a new issue if there's more problems :) |
spectrometer and system information
current problem
Hi, I am just begining to use python-seabreeze to monitor my spectrometer HR4000. I followed the installation instructions, all with success. First it was not possible to install all the drivers through seabreeze_os_setup (because windows blocked all the unsigned drivers), but using a workaround, I installed them all.
Now, I detect the spectrometer, but I get an error when trying to get the intensities, See bellow.
Could you help ?
Note: the spectrometer is working as it works on an old computer using LabView installation (we want to use python on the new computer).
minimal code example and error (very helpful if available)
output:
The text was updated successfully, but these errors were encountered: