Program doesn't like Numpy Arrays #3

Redoubts opened this Issue Apr 23, 2013 · 1 comment


None yet

2 participants


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
wb = pyexcelerate.Workbook()
testData = numpy.ones((ROWS, COLUMNS), dtype = int)
stime = time.clock()
ws = wb.new_sheet("Test 1", data=testData)"test.xlsx")
print "pyexcelerate, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
@kevmo314 kevmo314 was assigned Apr 23, 2013

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