-
-
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
[ENH] ApplyDomain: data info displayed in the status bar #4611
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4611 +/- ##
==========================================
+ Coverage 83.62% 83.68% +0.05%
==========================================
Files 281 275 -6
Lines 56199 55573 -626
==========================================
- Hits 46995 46504 -491
+ Misses 9204 9069 -135 |
@@ -31,6 +35,7 @@ class Error(OWWidget.Error): | |||
def __init__(self): | |||
super().__init__() | |||
self.data = None # type: Optional[Table] | |||
self.template_data = None # type: Optional[Table] |
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.
Since self.template_data
has been introduces self.template_domain
is no longer needed.
summary, details = "10", format_summary_details(output) | ||
self.assertEqual(info._StateInfo__output_summary.brief, summary) | ||
self.assertEqual(info._StateInfo__output_summary.details, details) | ||
|
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.
An extra line can be removed.
6a99ac7
to
4510fe2
Compare
Orange/widgets/data/owtransform.py
Outdated
self.apply() | ||
|
||
def apply(self): | ||
self.clear_messages() | ||
transformed_data = None | ||
if self.data and self.template_domain is not None: | ||
if self.data and self.template_data is not None: |
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.
If self.template_data is not None, it evaluates to True (the is not None part is not necessary).
Orange/widgets/data/owtransform.py
Outdated
@@ -97,8 +119,8 @@ def apply(self): | |||
def send_report(self): | |||
if self.data: | |||
self.report_data("Data", self.data) | |||
if self.template_domain is not None: | |||
self.report_domain("Template data", self.template_domain) | |||
if self.template_data is not None: |
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.
If self.template_data is not None, it evaluates to True (the is not None part is not necessary).
4510fe2
to
6bd7591
Compare
Description of changes
Input/output data info displayed in the status bar.
Includes