Skip to content

Add SR6 support#230

Merged
ap-- merged 5 commits into
ap--:mainfrom
knaugh:sr6_support
Jan 24, 2024
Merged

Add SR6 support#230
ap-- merged 5 commits into
ap--:mainfrom
knaugh:sr6_support

Conversation

@knaugh

@knaugh knaugh commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

Closes #224

Adding support for SR6 spectrometer. Passes pytest suite without dark count support
changed SR4 integration time limits to reflect datasheet (untested)

@knaugh knaugh mentioned this pull request Jan 5, 2024
@knaugh

knaugh commented Jan 5, 2024

Copy link
Copy Markdown
Contributor Author
platform linux -- Python 3.11.4, pytest-7.4.4, pluggy-1.0.0 -- /home/matt/miniconda3/bin/python3
cachedir: .pytest_cache
rootdir: /home/matt/Desktop/optical_rig/aquioptic/python-seabreeze
configfile: pytest.ini
collected 28 items                                                                                                                                                                                        

tests/test_backends.py::test_seabreeze_installed PASSED                                                                                                                                             [  3%]
tests/test_backends.py::test_seabreeze_wrong_backend_requested PASSED                                                                                                                               [  7%]
tests/test_backends.py::test_seabreeze_any_backend_available[cseabreeze] PASSED                                                                                                                     [ 10%]
tests/test_backends.py::test_seabreeze_any_backend_available[pyseabreeze] PASSED                                                                                                                    [ 14%]
tests/test_backends.py::test_seabreeze_cseabreeze_backend_available PASSED                                                                                                                          [ 17%]
tests/test_backends.py::test_seabreeze_pyseabreeze_backend_available PASSED                                                                                                                         [ 21%]
tests/test_backends.py::test_seabreeze_cseabreeze_api_init PASSED                                                                                                                                   [ 25%]
tests/test_backends.py::test_seabreeze_pyseabreeze_api_init[any] PASSED                                                                                                                             [ 28%]
tests/test_backends.py::test_seabreeze_pyseabreeze_api_init[openusb] PASSED                                                                                                                         [ 32%]
tests/test_backends.py::test_seabreeze_pyseabreeze_api_init[libusb0] PASSED                                                                                                                         [ 35%]
tests/test_backends.py::test_seabreeze_pyseabreeze_api_init[libusb1] PASSED                                                                                                                         [ 39%]
tests/test_backends.py::test_seabreeze_compare_backend_feature_interfaces PASSED                                                                                                                    [ 42%]
tests/test_protocol.py::test_pyseabreeze_protocol_messages PASSED                                                                                                                                   [ 46%]
tests/test_spectrometers.py::TestHardware::test_cant_find_serial[backend(any)] PASSED                                                                                                               [ 50%]
tests/test_spectrometers.py::TestHardware::test_device_cleanup_on_exit[backend(any)] PASSED                                                                                                         [ 53%]
tests/test_spectrometers.py::TestHardware::test_read_model[SR6:SR600418-backend(any)] PASSED                                                                                                        [ 57%]
tests/test_spectrometers.py::TestHardware::test_read_serial_number[SR6:SR600418-backend(any)] PASSED                                                                                                [ 60%]
tests/test_spectrometers.py::TestHardware::test_crash_may_not_influence_following_tests[SR6:SR600418-backend(any)] XFAIL (check if following tests work after crash)                                [ 64%]
tests/test_spectrometers.py::TestHardware::test_read_intensities[SR6:SR600418-backend(any)] PASSED                                                                                                  [ 67%]
tests/test_spectrometers.py::TestHardware::test_correct_dark_pixels[SR6:SR600418-backend(any)] SKIPPED (does not support dark counts)                                                               [ 71%]
tests/test_spectrometers.py::TestHardware::test_read_wavelengths[SR6:SR600418-backend(any)] PASSED                                                                                                  [ 75%]
tests/test_spectrometers.py::TestHardware::test_read_spectrum[SR6:SR600418-backend(any)] PASSED                                                                                                     [ 78%]
tests/test_spectrometers.py::TestHardware::test_max_intensity[SR6:SR600418-backend(any)] PASSED                                                                                                     [ 82%]
tests/test_spectrometers.py::TestHardware::test_integration_time_limits[SR6:SR600418-backend(any)] PASSED                                                                                           [ 85%]
tests/test_spectrometers.py::TestHardware::test_integration_time[SR6:SR600418-backend(any)] PASSED                                                                                                  [ 89%]
tests/test_spectrometers.py::TestHardware::test_trigger_mode[SR6:SR600418-backend(any)] PASSED                                                                                                      [ 92%]
tests/test_spectrometers.py::TestHardware::test_trigger_mode_wrong[SR6:SR600418-backend(any)] PASSED                                                                                                [ 96%]
tests/test_spectrometers.py::TestHardware::test_list_devices_dont_close_opened_devices[backend(any)] PASSED                                                                                         [100%]

========================================================================================= short test summary info =========================================================================================
SKIPPED [1] tests/test_spectrometers.py:265: does not support dark counts
================================================================================ 26 passed, 1 skipped, 1 xfailed in 22.16s ================================================================================

@ap--

ap-- commented Jan 6, 2024

Copy link
Copy Markdown
Owner

Thank you for your contribution @knaugh!

The PR looks good! Could you provide some information on how you determined the integration time limits for the SR4 and SR6?

Andreas

@knaugh

knaugh commented Jan 6, 2024 via email

Copy link
Copy Markdown
Contributor Author

@ap-- ap-- merged commit dbd2c1f into ap--:main Jan 24, 2024
@ap--

ap-- commented Jan 24, 2024

Copy link
Copy Markdown
Owner

Thanks again ❤️ A new version should be out by the end of the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for SR6 / HR6

2 participants