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

Ensure z-score slider adjusts colorbar range when changed #904

Merged
merged 7 commits into from
Feb 10, 2023

Conversation

alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

Closes #898. The z-score slider needs to be able to adjust the colorbar on change.

How did you implement your changes

Re-add the calibrate function and call it on self.normalizer when update_gui invoked. Adjust range of normalizer back to (-1, 0, 1).

Remaining issues

The normalizer still fails to add fractional ticks correctly (anything with .5 added to it). Additionally, for high z-score values, the tick range may not match exactly and the end ticks get drawn at weird spots.

@alex-l-kong alex-l-kong self-assigned this Feb 7, 2023
@alex-l-kong alex-l-kong marked this pull request as draft February 7, 2023 21:54
@alex-l-kong alex-l-kong marked this pull request as ready for review February 9, 2023 00:14
Copy link
Contributor

@cliu72 cliu72 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@alex-l-kong alex-l-kong merged commit 1f3859f into main Feb 10, 2023
@alex-l-kong alex-l-kong deleted the z_slider_fix branch February 10, 2023 21:56
@srivarra srivarra added the bug Something isn't working label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix z-score slider for metacluster remapping process
3 participants