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

Image view indicators for NaNs #1170

Merged
merged 11 commits into from
Nov 4, 2021
Merged

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Oct 18, 2021

Issue

Closes #1167

Description

Implement a BadDataOverlay mixin that can be used by MIImageView and MIMiniImageView to indicate when the current slice has NaN pixels in it.

Made sure that the setImage method is always called through MIImageView and MIMiniImageView so that they can trigger the check. For MIImageView the check also called when moving through the slices ("timeline")

Testing & Acceptance Criteria

Open a data set with nans, check that the bad data indicator shows in the the main, operations and recon windows.

I have not added unit tests as this is well covered by the GUI tests.

Documentation

Release notes

@samtygier-stfc samtygier-stfc force-pushed the 1167-image-view-indicators branch 2 times, most recently from a2647e9 to bbc50d4 Compare October 20, 2021 13:16
An indicator icon that can be added to ViewBox.
@samtygier-stfc
Copy link
Collaborator Author

2 of the GUI tests now show the indicator. test_negative_nan_overlay and test_operations_rescale_parameters (due to #1183). test_operations_ROI_normalisation_parameters had a subtle change with slight variation in image size compared to the baseline

@samtygier-stfc samtygier-stfc changed the title 1167 image view indicators Image view indicators for NaNs Nov 2, 2021
@samtygier-stfc samtygier-stfc marked this pull request as ready for review November 4, 2021 09:06
@DolicaAkelloEgwel DolicaAkelloEgwel merged commit 143100b into main Nov 4, 2021
@DolicaAkelloEgwel DolicaAkelloEgwel deleted the 1167-image-view-indicators branch November 4, 2021 11:51
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.

Warning indicators in image view
2 participants