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] Save Data: Support saving to Excel #3453

Merged
merged 10 commits into from
Dec 12, 2018

Conversation

ajdapretnar
Copy link
Contributor

Issue

Implements #3096.

Description of changes

Continued from #3306.
Remove support for .ods, since it didn't work.
Implement simple save to Excel, support only .xslx (xlwt didn't work with .xslx).

Includes
  • Code changes
  • Tests
  • Documentation

@ajdapretnar ajdapretnar mentioned this pull request Dec 7, 2018
3 tasks
data.metas)
headers = cls.header_names(data)
workbook = xlsxwriter.Workbook(filename)
print(filename)
Copy link
Contributor

Choose a reason for hiding this comment

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

As some would say, this is print.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😱

@@ -47,7 +48,9 @@ def test_writer(self):
self.widget.compress = d
self.widget.filetype = t
self.widget.update_extension()
self.assertEqual(len(self.widget.get_writer_selected().EXTENSIONS), 1)
print(self.widget.get_writer_selected())
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to point out that this is a print, too. :)

@codecov
Copy link

codecov bot commented Dec 7, 2018

Codecov Report

Merging #3453 into master will increase coverage by <.01%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##           master    #3453      +/-   ##
==========================================
+ Coverage   83.27%   83.27%   +<.01%     
==========================================
  Files         365      365              
  Lines       64305    64326      +21     
==========================================
+ Hits        53549    53568      +19     
- Misses      10756    10758       +2

@codecov
Copy link

codecov bot commented Dec 7, 2018

Codecov Report

Merging #3453 into master will decrease coverage by 0.02%.
The diff coverage is 95.34%.

@@            Coverage Diff             @@
##           master    #3453      +/-   ##
==========================================
- Coverage    83.3%   83.27%   -0.03%     
==========================================
  Files         365      365              
  Lines       64409    64324      -85     
==========================================
- Hits        53654    53566      -88     
- Misses      10755    10758       +3

@lanzagar lanzagar changed the title OWSave: support saving to Excel [ENH] Save Data: Support saving to Excel Dec 7, 2018
@kernc
Copy link
Contributor

kernc commented Dec 7, 2018

Implement simple save to Excel, support only .xslx (xlwt didn't work with .xslx).

xlwt only supported the old, stable .xls format.

IIUC, the proposed change now introduces inability to read files of said format.

@janezd janezd merged commit 913ede0 into biolab:master Dec 12, 2018
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.

5 participants