luizgh / sigver

Signature verification package, for learning representations from signature data, training user-dependent classifiers.
BSD 3-Clause "New" or "Revised" License
82 stars 46 forks source link

added with statement to np.load #5

Closed gonultasbu closed 5 years ago

gonultasbu commented 5 years ago

closes the underlying file descriptor, preventing descriptor leak according to doc. https://docs.scipy.org/doc/numpy/reference/generated/numpy.load.html

luizgh commented 5 years ago

Nice catch! This is not a problem for .npy files, but it is indeed for .npz.