diff --git a/nd2reader/model/image.py b/nd2reader/model/image.py index f51d586..e3ee334 100644 --- a/nd2reader/model/image.py +++ b/nd2reader/model/image.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import numpy as np +import warnings class Image(np.ndarray): @@ -97,3 +98,8 @@ 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