From a102f6189bdfa8b4d04752b88547d52665deeacc Mon Sep 17 00:00:00 2001 From: jim Date: Sat, 31 Oct 2015 16:51:13 -0500 Subject: [PATCH] resolves #113: removed `.data` property from images now that they simply behave like numpy arrays --- nd2reader/model/image.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nd2reader/model/image.py b/nd2reader/model/image.py index af738a4..62ffea3 100644 --- a/nd2reader/model/image.py +++ b/nd2reader/model/image.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- import numpy as np -import warnings class Image(np.ndarray): @@ -99,8 +98,3 @@ class Image(np.ndarray): """ return self._z_level - - @property - def data(self): - warnings.warn("Image objects now directly subclass Numpy arrays, so using the data attribute will be removed in the near future.", DeprecationWarning) - return self