Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Program doesn't like Numpy Arrays #3

Closed
Redoubts opened this Issue · 1 comment

2 participants

@Redoubts

I wanted to try the benchmark script with a Numpy array, and found that the program simply writes an empty .xlsx file, rather than a proper sheet of ones. The script does not throw any error as it fails to deliver the desired result. Below is the script I used.

import time, pyexcelerate, numpy

ROWS = 65000
COLUMNS = 100
wb = pyexcelerate.Workbook()
testData = numpy.ones((ROWS, COLUMNS), dtype = int)
stime = time.clock()
ws = wb.new_sheet("Test 1", data=testData)
wb.save("test.xlsx")
print "pyexcelerate, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
@kevmo314 kevmo314 was assigned
@kevmo314
Collaborator

Fixed, and added a test case for numpy arrays as well, thanks.

@kevmo314 kevmo314 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.