-
-
Notifications
You must be signed in to change notification settings - Fork 194
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 Clustergram when passing labels. #492
Conversation
5575e18
to
c9a8cf4
Compare
c9a8cf4
to
e0a60eb
Compare
I noticed that we didn't have any integration test for prop dash_bio.Clustergram(
data=data,
row_labels=row_labels,
column_labels=col_labels
) e0a60eb fixed it. With the latter change, I also meant to echo what @joelostblom suggested at some point, i.e., (whenever input data is a dataframe) we should use the dataframe's labels by default: Say Note that, in this spirit, the Clustergram demo app uses prop/parameter Finally, this change (e0a60eb) is 'non-breaking' even if it lays the ground for a new behaviour. To give all the details, it does not affect the current rendering in terms of not showing row (resp. column) labels whenever
|
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.
Please add a CHANGELOG entry and update the version. Other than that, this looks good - thanks!
I'm not sure which version I should update to: The latest changes to CHANGELOG by @Marc-Andre-Rivet introduced a |
@shammamah I added 1fc32b4 assuming the build would be fine and we could release today, but apparently it's not the case! I went like
@Marc-Andre-Rivet would you mind having a look? Thanks! |
By the way, what happened to the CI visual (Percy) check? |
There is nothing in Please revert the changes and only run |
Thanks for the quick response, @shammamah ! The changes to But the version number change for |
fc33c74
to
1fc32b4
Compare
@mkcor If you just run Re: the tests, we're seeing something similar in other Dash repos (e.g., here). This might have to do with the |
@shammamah exactly, that's what I did and reported. So I am allowed to run |
Done. It's just a little stressful to let
be, with 'high' printed in red... :s Thanks for pointing me to related Python test issues! |
@shammamah @Marc-Andre-Rivet please review/approve: Could we release today? Thanks! |
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.
💃 Thank you for taking care of this! :)
Fixes #449
About
Description of changes
When clustering along rows (resp. columns), the bug would appear for non-unique row (resp. column) labels mixed with non-unique rows (resp. columns). For example, it would get unnoticed when calling
Clustergram(data, row_labels=row_labels)
ifand
but the clustering would fail if, instead,
(as used in the unit tests), leading to the following (wrong) clustering:
Apparently I forgot to push after I committed 3c83048; I wanted to showcase the (wrong) clustering result (along columns):
before implementing the fix (f23f7ed).