-
-
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
Predictions: Output annotated table #6718
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6718 +/- ##
==========================================
- Coverage 88.13% 88.13% -0.01%
==========================================
Files 322 322
Lines 70577 70586 +9
==========================================
+ Hits 62202 62208 +6
- Misses 8375 8378 +3 |
14c0d52
to
b715ce9
Compare
or predmodel is not None and predmodel.sortColumn() > 0: | ||
predictions = predictions[datamodel.mapToSourceRows(...)] | ||
selected = predictions | ||
annotated_data = predictions |
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.
Annotated data
is missing the Selected
attribute when no rows are selected.
annotated_data = predictions | ||
self.Outputs.selected_predictions.send(selected) | ||
self.Outputs.annotated.send(annotated_data) | ||
|
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.
While at it, you can also remove the redundant new line :)
@VesnaT. there was another bug: if the user sorted the table, the output was sorted only when nothing was selected. I fixed all in a separate commit; please squash when merging. |
Issue
Fixes #6711.
Description of changes
Add a (potentially lazy) output with annotated predictions.
I haven't made the existing output lazy, although this should be done at some point -- but perhaps as a general change in other widgets as well.
Includes