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

Not setting shape and dtype in config window when no image acquired #102

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

WeisLeDocto
Copy link
Member

When using the Camera Configuration window (CameraConfig), the shape and data type of the last acquired image is saved. It is then passed to the parent Camera Block, for initializing internal data structures. When no image can be grabbed, an information image is displayed in the configuration window. However, until now, the shape and dtype of this information image was being saved and passed to the Camera Block. This was causing cryptic bugs for users.

With this PR, the shape and dtype is never saved when the information image is displayed. If no real image can be acquired before exiting the configuration window, an error signaling that the shape and dtype are missing is raised and stops the test.

Previously, the shape and dtype of the error image were being saved.
This behavior was leading to an unclear bug for the user.
@WeisLeDocto WeisLeDocto self-assigned this Feb 25, 2024
@WeisLeDocto WeisLeDocto merged commit b214162 into develop Feb 25, 2024
19 checks passed
@WeisLeDocto WeisLeDocto deleted the fix/shape_handling_no_img_config branch February 25, 2024 22:32
@WeisLeDocto WeisLeDocto mentioned this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant