-
-
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
Rank: Move TableView and TableModel to gui #6098
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6098 +/- ##
==========================================
- Coverage 86.63% 86.62% -0.01%
==========================================
Files 315 315
Lines 67560 67559 -1
==========================================
- Hits 58531 58524 -7
- Misses 9029 9035 +6 |
I agree, but I fear we already have a plentitude of table models and views. Quick check showed it may not be so bad; details below. Still, please
Now for my "brief analysis": ModelsGeneral table models
Table models defined in widget modules (excluding specific models, such as those in Feature Statistics, Distance Matrix, Predictions...)
Views
|
a932b44
to
d6dc149
Compare
@janezd I did as suggested. The alternative is to simply copy the code from Rank into OWCollocations (biolab/orange3-text#782), which would also simplify release-making (Collocations would depend on releasing master first). I am fine with either option, whatever you think is best. |
@@ -556,7 +556,7 @@ def test_concurrent_cancel(self): | |||
class TestRankModel(GuiTest): |
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.
Could you, please, also move this test to Orange.widgets.tests.test_gui
?
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.
Done. I just wasn't sure whether to rename the test...
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 apologize for being such a nazi. We, that is pylint and I, think that you should also clean and rearrange your imports.
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 know. I was waiting for hints from the lint run. I don't know how to run it locally so.... 🤷♀️
add8eac
to
24ce260
Compare
24ce260
to
7bcc2f7
Compare
Issue
Rank's TableView and TableModel are not independent modules that can be called for other widgets.
Description of changes
Move the two classes to gui.py, so other widgets can use them.
Includes