Browse Source

resolves #5: removed two unnecessary array typecasting operations

master
jim 10 years ago
parent
commit
b5a84b8059
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nd2reader/model/__init__.py

+ 2
- 2
nd2reader/model/__init__.py View File

@ -86,8 +86,8 @@ class Image(object):
@property
def data(self):
if self._data is None:
# The data is just a flat, 1-dimensional array. We convert it to a 2D array and cast the data points as 16-bit integers
self._data = np.reshape(self._raw_data, (self._height, self._width)).astype(np.int64).astype(np.uint16)
# The data is just a flat, 1-dimensional array. We convert it to a 2D image here.
self._data = np.reshape(self._raw_data, (self._height, self._width))
return self._data
@property


Loading…
Cancel
Save