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

[ENH] OWPivotTable: Data info displayed in the status bar #4472

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

aturanjanin
Copy link
Contributor

Description of changes

Input/output data info displayed in the status bar.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Feb 28, 2020

Codecov Report

Merging #4472 into master will decrease coverage by 4.25%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #4472      +/-   ##
=========================================
- Coverage   87.45%   83.2%   -4.26%     
=========================================
  Files         405     268     -137     
  Lines       73924   54032   -19892     
=========================================
- Hits        64649   44955   -19694     
+ Misses       9275    9077     -198

@@ -821,6 +829,11 @@ def commit(self):
self.Outputs.pivot_table.send(self.pivot.pivot_table)
self.Outputs.filtered_data.send(self.get_filtered_data())

output = self.pivot.pivot_table
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather consider filtered data here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though pivot table is the default output of the widget and if a user wants filtered data on the output they have to change connection afterwards?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@@ -821,6 +829,11 @@ def commit(self):
self.Outputs.pivot_table.send(self.pivot.pivot_table)
self.Outputs.filtered_data.send(self.get_filtered_data())

output = self.get_filtered_data()
Copy link
Contributor

@VesnaT VesnaT Mar 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are saving the filtered data into a temporary variable, you can do it before self.Outputs.filtered_data.send(self.get_filtered_data()) and use it there as well, instead of creating the data twice.

@VesnaT VesnaT merged commit d322857 into biolab:master Mar 6, 2020
@aturanjanin aturanjanin deleted the owpivottable branch March 9, 2020 09:36
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.

2 participants