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

dark pixel indices for ST #194

Merged
merged 1 commit into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/seabreeze/pyseabreeze/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ class ST(SeaBreezeDevice):
usb_protocol = OBP2Protocol

# spectrometer config
dark_pixel_indices = DarkPixelIndices.from_ranges()
dark_pixel_indices = DarkPixelIndices.from_ranges((1503, 1516))
integration_time_min = 1560
integration_time_max = 6000000
integration_time_base = 10
Expand Down
6 changes: 5 additions & 1 deletion src/seabreeze/pyseabreeze/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,15 @@ class OBP2Protocol(OBPProtocol):
for code, msg in {
0x000_001_00: "", # GET_SERIAL
0x000_001_01: "", # GET_SERIAL_LENGTH ??? not sure if this works
0x000_01C_00: "", # GET_SPECTRUM ???
0x000_00E_00: "", # GET_OPTICAL_DARK_PIXELS
0x000_01C_00: "", # GET_SPECTRUM
0x000_00C_01: "<L", # SET_ITIME_USEC
0x000_00D_01: "<B", # SET_TRIG_MODE
0x000_011_00: "", # GET_WL_COEFFS
0x000_012_00: "", # GET_NL_COEFFS
0x000_01D_00: "", # GET_AUTONULL_MAXIMUM_ADC_COUNT
0x000_11D_00: "", # GET_AUTONULL_SATURATION_LEVEL
0x000_31D_00: "", # GET_AUTONULL_BASELINE_LEVEL
}.items()
} # add more here if you implement new features

Expand Down