[FIX] Warning for discrete variable with >100 values in OWFile#4120
[FIX] Warning for discrete variable with >100 values in OWFile#4120janezd merged 2 commits intobiolab:masterfrom
Conversation
|
As you noted, there are still many ways to force variables to have >100 values. Having a warning in I wrote a comment in #4094 - maybe the file widget would just give a warning? Automated detection should of course recognize such variables as strings. Wasn't it already? |
It did, I am sure of it. I also remember some users asking to increase the number of allowed discrete variables, mostly biologists, geologists and physicists. |
Automated detection recognizes variables that have Should we put a threshold of 100 hundred unique values besides the current threshold for variable recognition or we leave it as it is? I agree with the warning in the File widget. |
fc9982d to
16636c3
Compare
16636c3 to
905898e
Compare
Codecov Report
@@ Coverage Diff @@
## master #4120 +/- ##
=========================================
Coverage ? 85.68%
=========================================
Files ? 390
Lines ? 69726
Branches ? 0
=========================================
Hits ? 59743
Misses ? 9983
Partials ? 0 |
|
I removed the warning from the Discrete variable and added the Warning on the File widget. Since now there is a warning on the widget for discrete variables with more than 100 values I suggest that we keep the same rule for guessing (see the previous comment). |
|
Domain editor is a component and as such it shouldn't expect the class into which it is inserted to have some specific warning that the component will trigger.
to domain editor's I believe that the former is better, though. |
905898e to
a480971
Compare
|
I moved the warning triggering to the file widget and it shows the warning if the column in the file is marked as a discrete. |
Issue
Fixes #4094
Description of changes
As @janezd suggested the variable with more than 100 different values should not be DiscreteVariable. This PR:
guess_data_typefunctionOWFilewarns the user who set the variable with more than 100 different values as a DiscreteVariableIncludes