Skip to content

[ENH] ApplyDomain: data info displayed in the status bar#4611

Merged
VesnaT merged 2 commits intobiolab:masterfrom
aturanjanin:owtransform
Apr 17, 2020
Merged

[ENH] ApplyDomain: data info displayed in the status bar#4611
VesnaT merged 2 commits intobiolab:masterfrom
aturanjanin:owtransform

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     

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

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