Skip to content
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

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Jan 26, 2024

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
  • Code changes
  • Tests
  • Documentation

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Merging #6718 (98b2049) into master (f49e020) will decrease coverage by 0.01%.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

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     

@janezd janezd force-pushed the predictions-annotated branch from 14c0d52 to b715ce9 Compare January 26, 2024 14:46
or predmodel is not None and predmodel.sortColumn() > 0:
predictions = predictions[datamodel.mapToSourceRows(...)]
selected = predictions
annotated_data = predictions
Copy link
Contributor

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)

Copy link
Contributor

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 :)

@janezd
Copy link
Contributor Author

janezd commented Feb 6, 2024

@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.

@VesnaT VesnaT merged commit 88f1048 into biolab:master Feb 7, 2024
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Predictions should have output with annotated data
2 participants