-
Notifications
You must be signed in to change notification settings - Fork 17
Coloring labels by a continuous variable fixed #344
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
Merged
timtreis
merged 25 commits into
main
from
bugfix/342-coloring-labels-by-a-continuous-variable-appears-to-be-broken-labels-associated-with-wrong-colors
Sep 4, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
a55318c
fix
timtreis 381b895
fixed case without info for column
timtreis 487f6a5
fixed case for no-column, but modified na_color
timtreis a9c7609
added images from runner
timtreis c7e3260
bugfix for NA color
timtreis d0b7a1a
lowered testing threshold because mismatches are not being flagged
timtreis a9d5dbb
modified test to be visually easier to compare
timtreis fd762a9
further lowered testing threshold
timtreis 729d465
Changed points behaviour and lowered test threshold
timtreis 4421383
modified tests for better display
timtreis 608bea0
fixed bug in typecheck
timtreis 69bfc35
fixed test, added images from runner
timtreis 7db0860
Updated CHANGELOG, added pic from runner
timtreis 01a4f73
Removed dead code
timtreis eb2fc12
simplified test
timtreis 4d40479
added images from runner
timtreis f8d6bac
fixed test
timtreis f6a2d16
fix
timtreis 268a1b2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 81204ea
removed cbar
timtreis efb0f19
Merge branch 'bugfix/342-coloring-labels-by-a-continuous-variable-app…
timtreis ca0ff4e
merge
timtreis 62d7cb9
added img from runner
timtreis 0d54250
removed .copy()
timtreis 9d4b6b6
reverted change
timtreis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+4.78 KB
(120%)
tests/_images/Labels_can_color_labels_by_categorical_variable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.3 KB
tests/_images/Labels_can_color_labels_by_categorical_variable_in_other_table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+466 Bytes
(100%)
tests/_images/Labels_can_color_labels_by_continuous_variable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
tests/_images/Labels_can_render_given_scale_of_multiscale_labels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-252 Bytes
(100%)
tests/_images/Labels_can_stop_rasterization_with_scale_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-157 Bytes
(100%)
tests/_images/Labels_label_colorbar_uses_alpha_of_less_transparent_infill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-202 Bytes
(99%)
tests/_images/Labels_label_colorbar_uses_alpha_of_less_transparent_outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.85 KB
(86%)
tests/_images/Labels_subset_categorical_label_maintains_order.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.37 KB
(90%)
...ages/Labels_subset_categorical_label_maintains_order_when_palette_overwrite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.68 KB
(82%)
tests/_images/Labels_two_calls_with_coloring_result_in_two_colorbars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+48 Bytes
(100%)
.../_images/NotebooksTransformations_can_render_transformations_raccoon_affine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.78 KB
(97%)
...ges/NotebooksTransformations_can_render_transformations_raccoon_composition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+887 Bytes
(100%)
..._images/NotebooksTransformations_can_render_transformations_raccoon_inverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+401 Bytes
(100%)
..._images/NotebooksTransformations_can_render_transformations_raccoon_mapaxis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+887 Bytes
(100%)
..._images/NotebooksTransformations_can_render_transformations_raccoon_overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+114 Bytes
(100%)
...images/NotebooksTransformations_can_render_transformations_raccoon_rotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.77 KB
(97%)
...s/_images/NotebooksTransformations_can_render_transformations_raccoon_scale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.81 KB
(91%)
...s/_images/NotebooksTransformations_can_render_transformations_raccoon_split.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.8 KB
(190%)
tests/_images/Points_can_filter_with_groups_default_palette.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-572 Bytes
(98%)
tests/_images/Utils_can_set_zero_in_cmap_to_transparent.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm is the copy really required here? I thought that map array returns an array with same shape as the original array, but it would not have the same pointer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I remember. Don't ask me why, but if I don't
copy()
, one of the tests fails with:ValueError: buffer source array is read-only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same issue with the current
main
: whenever I tried to color labels by a column intable.obs
, I'd getValueError: buffer source array is read-only
, and putting in those.copy()
calls fixed it. This happened regardless of whether theSpatialData
object was buffered to disk or not.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, this is probably a bug in skimage actually. For now we could keep it as it is, but please add a comment with the issue so we remove this when we can.