Basic HR2 support#242
Merged
Merged
Conversation
Contributor
|
Great to see that support for other recent models is being added! :) |
ap--
approved these changes
May 29, 2024
ap--
left a comment
Owner
There was a problem hiding this comment.
@gabrielbenedikt thank you so much for your contribution! ❤️
The PR looks good! I added some change notes in the udev rules so that it's clear when the file was updated.
Owner
|
@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) |
Owner
|
I'll push a new release later today! Thanks again! ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.