Program doesn't like Numpy Arrays #3

Closed
Redoubts opened this Issue Apr 23, 2013 · 1 comment

Projects

None yet

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 Apr 23, 2013
Collaborator

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

@kevmo314 kevmo314 closed this Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment