Skip to content

[ENH] OWFeatureStatistics: data info displayed in the status bar#4409

Merged
VesnaT merged 2 commits intobiolab:masterfrom
aturanjanin:owfeaturestatistics
Feb 14, 2020
Merged

[ENH] OWFeatureStatistics: data info displayed in the status bar#4409
VesnaT merged 2 commits intobiolab:masterfrom
aturanjanin:owfeaturestatistics

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

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

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

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