Commit c3e89914 authored by kulvait's avatar kulvait

Fix writeFrame

parent 30bb23ed
......@@ -92,7 +92,7 @@ def writeFrame(fileName, k, data, force=False):
if shape[0] != rows or shape[1] != columns:
raise ValueError('There is dimension mismatch between frame (%d, %d) and expected (rows, cols) = (%d, %d) according to header.' %
(rows, columns, shape[0], shape[1]))
f = open(file, "r+b")
f = open(fileName, "r+b")
data = np.array(data, np.dtype('<f4'))
data = data.reshape((rows * columns, ))
f.seek(6 + rows * columns * k * 4, os.SEEK_SET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment