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

Exposure page: Default to show rate img, keep order of radio buttons constant #1111

Merged

Conversation

bhilbert4
Copy link
Collaborator

Small adjustments such that the rate image is shown by default when clicking on the page for a given exposure. If there is n rate image, then it looks for a dark suffix.

There are also changes such that we try to keep the order of the radio buttons that list the available suffixes as consistent as possible, with the only changes coming from which suffixes are present.

@bhilbert4
Copy link
Collaborator Author

@mfixstsci This is ready for review. I've tested on the dev server and everything looks good. rate images are shown upon page loads for all images except darks, where the dark suffix is shown. I've set up some logging that creates a log only if an unknown suffix is encountered. In my testing tonight so far, I haven't run into any instances of that.

@bhilbert4 bhilbert4 changed the title [WIP]: Exposure page: Default to show rate img, keep order of radio buttons constant Exposure page: Default to show rate img, keep order of radio buttons constant Nov 17, 2022
@bhilbert4
Copy link
Collaborator Author

And the radio buttons listing the suffixes now appear in a consistent order from image to image.

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

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

Great comments!

@BradleySappington BradleySappington merged commit 9904c32 into spacetelescope:develop Nov 30, 2022
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.

Default to rate (and dark) suffix when opening image pages Display rate images by default for MIRI MRS
2 participants