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] OWFeatureStatistics: data info displayed in the status bar #4409

Merged
merged 2 commits into from
Feb 14, 2020

Conversation

aturanjanin
Copy link
Contributor

Issue

The drop-down list for choosing color of histograms was very narrow so feature names were not seen properly.

Description of changes

Display input and output data info in the status bar.
Made Color drop-down list wider.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Feb 11, 2020

Codecov Report

Merging #4409 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4409      +/-   ##
==========================================
+ Coverage   87.43%   87.45%   +0.01%     
==========================================
  Files         405      405              
  Lines       74073    74081       +8     
==========================================
+ Hits        64769    64784      +15     
+ Misses       9304     9297       -7

@@ -792,11 +786,14 @@ def set_data(self, data):
self.data = data

if data is not None:
self.info.set_input_summary(self.info.format_number(len(data)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider removing format_number call:
biolab/orange-widget-base#41

self.Outputs.reduced_data.send(None)
self.Outputs.statistics.send(None)
return

# Send a table with only selected columns to output
variables = self.model.variables[self.selected_rows]
self.info.set_output_summary(
self.info.format_number(len(self.data[:, variables])), \
Copy link
Contributor

Choose a reason for hiding this comment

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

The backslash in unnecessary.

@@ -463,6 +467,39 @@ def test_restores_previous_selection(self):
self.send_signal(self.widget.Inputs.data, self.data1)
self.assertEqual(len(self.widget.selected_rows), 2)

class TestSummary(WidgetTest):
Copy link
Contributor

@VesnaT VesnaT Feb 12, 2020

Choose a reason for hiding this comment

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

The test case is indented and therefore never executed.

@aturanjanin aturanjanin changed the title [ENH] OWFeatureStatistics: data info displayed in the status bar [WIP] [ENH] OWFeatureStatistics: data info displayed in the status bar Feb 13, 2020
@aturanjanin aturanjanin changed the title [WIP] [ENH] OWFeatureStatistics: data info displayed in the status bar [ENH] OWFeatureStatistics: data info displayed in the status bar Feb 13, 2020
@VesnaT VesnaT merged commit da37d15 into biolab:master Feb 14, 2020
@aturanjanin aturanjanin deleted the owfeaturestatistics branch February 28, 2020 14:02
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