Skip to content

Commit

Permalink
Ensure array data is always uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Mar 3, 2016
1 parent a8057ed commit 453efe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/novice/_novice.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def array(self):

@array.setter
def array(self, array):
self._array = array
self._xy_array = array_to_xy_origin(array)
self._array = array.astype(np.uint8)
self._xy_array = array_to_xy_origin(self._array)
self._array_backup = self._array.copy()

@property
Expand Down

0 comments on commit 453efe9

Please sign in to comment.