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

Merged
merged 2 commits into from
Apr 17, 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 Apr 2, 2020

Codecov Report

Merging #4611 into master will increase coverage by 0.05%.
The diff coverage is 95.83%.

@@            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]
Copy link
Contributor

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)

Copy link
Contributor

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.

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:
Copy link
Contributor

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

@@ -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:
Copy link
Contributor

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

@VesnaT VesnaT merged commit 85d35aa into biolab:master Apr 17, 2020
@aturanjanin aturanjanin deleted the owtransform branch May 6, 2020 08:54
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