Closed gabrielbenedikt closed 4 months ago
Great to see that support for other recent models is being added! :) I have an HR4, and I would like to add support for that too. I am trying to replicate your code changes. How can I find the parameters for the entry to add in the file 10-oceanoptics.rule, and for the class HR4 to add to the file devices.py?
@MicheleCotrufo those are the USB VENDOR ID and USB PRODUCT ID. Dependent on your operating system you'll find them in device manager (win) or by typing lsusb (unix)
I'll push a new release later today!
Thanks again! ❤️
Here is a most basic HR2 support to pyseabreeze. -) Updated udev rules with appropriate PID. -) Copied and adapted the SR2 spectrometer class.
Tested basic functionality: -) Spectrometer is now found by seabreeze. -) Acquisition of a spectrum succeeds.
Passes pytest, without dark counts like the SR2 class this code is derived from.