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

Fix autoscale in Feature Color Mode Preferences #299

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Fix autoscale in Feature Color Mode Preferences #299

merged 2 commits into from
Mar 22, 2024

Conversation

stefanhahmann
Copy link
Collaborator

@stefanhahmann stefanhahmann commented Mar 22, 2024

This PR contains a change so that the function autoscale in Preferences > Feature Color Modes also works for Features that contain NaN values.

The current situation is that pressing autoscale for such features results in non usuable (and even non manually changeable) values, cf.:

grafik

This PR lets the DefaultFeatureRangeCalculator ignore NaN values so that the expected min and max values are returned.

The PR contains a unit test to demonstrate the behaviour of DefaultFeatureRangeCalculator

* The test shows that the DefaultFeatureRangeCalculator does not return the expected min and max values for Features that contain NaN values
@stefanhahmann stefanhahmann self-assigned this Mar 22, 2024
@stefanhahmann stefanhahmann requested a review from tinevez March 22, 2024 15:01
@stefanhahmann stefanhahmann changed the base branch from master to dev March 22, 2024 15:02
@tinevez tinevez merged commit 421f17d into dev Mar 22, 2024
1 check passed
@tinevez tinevez deleted the fix_autoscale branch March 22, 2024 15:25
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