Skip to content

Conversation

@ppp-one
Copy link
Collaborator

@ppp-one ppp-one commented Aug 27, 2025

Removed autofocus ValueErrors on bad conditions. Tests in Astra succeeded (see code here), however, astrafocus pytests failed to run because of issues with my modified config.yaml (it didn't seem to like Astra generated fits files).

======================================================================================================= short test summary info ========================================================================================================
FAILED tests/test_analytic_response_autoffocuser.py::TestAutofocuser::test_autofocuser - ValueError: zero-size array to reduction operation minimum which has no identity
FAILED tests/test_analytic_response_autoffocuser.py::TestAutofocuser::test_autofocuser_single_sweep - ValueError: zero-size array to reduction operation minimum which has no identity
FAILED tests/test_non_parametric_respons_autofocuser.py::TestNonParametricResponseAutofocuser::test_non_parametric_response_autofocuser - ValueError: zero-size array to reduction operation minimum which has no identity
===================================================================================================== 3 failed, 18 passed in 2.45s =====================================================================================================

@dgegen dgegen merged commit 8b72439 into dgegen:main Aug 27, 2025
3 checks passed
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.

2 participants