-
-
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] SOM: Fix crash when color is constant #5860
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5860 +/- ##
=======================================
Coverage 86.29% 86.29%
=======================================
Files 315 315
Lines 66793 66815 +22
=======================================
+ Hits 57638 57659 +21
- Misses 9155 9156 +1 |
c38d639
to
a10f06a
Compare
Mostly this. :) https://github.com/biolab/orange3/blob/master/Orange/widgets/unsupervised/owsom.py#L574 But also another place. |
Orange/widgets/unsupervised/owsom.py
Outdated
@@ -210,6 +211,8 @@ class Warning(OWWidget.Warning): | |||
ignoring_disc_variables = Msg("SOM ignores categorical variables.") | |||
missing_colors = \ | |||
Msg("Some data instances have undefined value of '{}'.") | |||
no_defined_colors = \ | |||
Msg("'{}' has node defined values.") |
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.
node -> no
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.
yes
b215c7f
to
ecc7355
Compare
ecc7355
to
c00df78
Compare
This problem was actually in Which, by the way, reminds me: all widget should use |
Issue
Fixes #5858.
If the variable determining the color was constant, the binning set two thresholds, which were both removed, thus creating an empty list of thresholds and labels. This created problems later in the code.
Description of changes
Set a threshold and label.
Includes