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

Clear unaggregated images also during images clear #1269

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented Aug 17, 2022

Previously, we were not clearing unaggregated images in
HexrdConfig().clear_images(). Clear them as well so that all of the
images data is fully cleared.

This issue resulted in a bug where, if you had an aggregated image series
loaded, and then you loaded a new instrument config, the unaggregated images
would be used and would have extra incorrect detectors in it.

The unaggregated images are only used if an aggregated image series is loaded,
in order to make a backup of the unaggregated images.

See the bug here:

images_bug.mp4

And see it fixed with this PR here:

images_bug_fixed.mp4

Previously, we were not clearing unaggregated images in
`HexrdConfig().clear_images()`. Clear them as well so that all of the
images data is fully cleared.

This issue resulted in a bug where, if you had an aggregated image series
loaded, and then you loaded a new instrument config, the unaggregated images
would be used and would have extra incorrect detectors in it.

The unaggregated images are only used if an aggregated image series is loaded,
in order to make a backup of the unaggregated images.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery requested a review from cjh1 August 17, 2022 14:57
Copy link
Collaborator

@cjh1 cjh1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@psavery psavery merged commit e1bbf59 into HEXRD:master Aug 17, 2022
@psavery psavery deleted the clear-unaggregated-images branch August 17, 2022 17:05
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