-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Hierarchical clustering: Make annotation a context setting #1748
Conversation
Current coverage is 88.86% (diff: 100%)@@ master #1748 diff @@
==========================================
Files 82 82
Lines 8896 8896
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 7905 7905
Misses 991 991
Partials 0 0
|
Values in the combo should be the same when placing a widget on canvas (disconected) and after disconnecting data from it. |
I think selection in the combo, when data are distances between columns, should be somehow saved as well. |
|
Would it be possible to add a tests that checks that the settings are stored and retrieved? Both, for row an attribute distances? |
ea30352
to
1ca190f
Compare
The widget already implemented the above rules we discussed with @VesnaT: class was chosen if it existed, and Enumeration was preferred over None. The latter didn't work (and an empty widget had None instead of Enumeration) because of the bug in Widget now behaves like in #1739: it has context settings for matrices with attached data, and separate settings for axis=0 and axis=1. I added tests. (Note to self: ea30352 is the commit with the previous version.) |
b535305
to
6893bc8
Compare
Make a workflow: File (iris) -> Select columns -> Distances -> Hieararhical Clustering. |
6893bc8
to
a877fe1
Compare
@VesnaT, thanks. Fixed (lines 997 and 998 in the revised commit) and tested (test_domain_loses_class). |
Alternative to #1739.
Issue
OWHierarchialClustering: Annotation drop down does not keep context settings.
Description of changes
Annotation index is replaced with a context setting that contains an attribute or a string. Context are used only if the data are distances between rows. Otherwise, separate settings for axis=0 and axis=1 are used.
Settings are not migrated: the previous settings didn't work anyway.
Includes
- [ ] Documentation