Skip to content

Commit 252d27d

Browse files
author
Jérôme Parent
committed
close file
f.close to f.close()
1 parent d64b5f7 commit 252d27d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyKoalaUtils/binkoala.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def read_mat_bin(fname):
8080
#print(kbin_header)
8181
tmp = numpy.fromfile(f, dtype='float32')
8282
#print 'array = {}'.format(len(tmp))
83-
f.close
83+
f.close()
8484
shape = (kbin_header['height'], kbin_header['width'])
8585
return (tmp.reshape(shape), kbin_header)
8686

@@ -211,7 +211,7 @@ def read_mat_cplx_bin(fname):
211211
shape = (kcplx_header['height'], kcplx_header['width'])
212212
#print kcplx_header
213213
tmp = numpy.fromfile(f, dtype='float32')
214-
f.close
214+
f.close()
215215
real_tmp = (tmp[0:kcplx_header['height']*kcplx_header['width']]).reshape(shape)
216216
imag_tmp = (tmp[kcplx_header['height']*kcplx_header['width']:]).reshape(shape)
217217
#print tmp

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="pyKoalaUtils", # Replace with your own username
8-
version="0.0.2",
8+
version="0.0.3",
99
author="Jerome Parent",
1010
author_email="jerome.parent@lyncetec.com",
1111
description="Utility to open LynceeTec Koala bin files",

0 commit comments

Comments
 (0)