From d26fc9dc0a287b6acb4ec23d44a3a44fd9eb7d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Haberth=C3=BCr?= Date: Mon, 3 Aug 2015 16:08:54 +0200 Subject: [PATCH] Correct comments --- Python/HandleDMPFiles.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Python/HandleDMPFiles.py b/Python/HandleDMPFiles.py index 54e8d96..b513092 100644 --- a/Python/HandleDMPFiles.py +++ b/Python/HandleDMPFiles.py @@ -22,11 +22,12 @@ def readDMP(filename): dmpfile = open(filename, 'rb') # The DMP file format is a very simple file format; the header consists of # 3 unsigned 16bit integers specifying the image dimensions, followed by a - # stream of 32-bit floats in little-endian byte order. - # Load Header. It's first two values are the image size. + # stream of 32-bit floats in little-endian byte order. It's first two + # values are the image size. + # Load Header. header = numpy.fromfile(dmpfile, numpy.int16, 3) imageSize = (header[1], header[0]) - # Load file and reshape to the size from the header + # Load the whole file and reshape to the size given in the header image = numpy.fromfile(dmpfile, numpy.float32) image = image.reshape(imageSize) dmpfile.close()