Skip to content

Commit

Permalink
Rename pixel_type to dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervdw committed Jul 21, 2017
1 parent 6f77d23 commit c14f6f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pims/base_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def frame_shape(self):
pass

@abstractproperty
def pixel_type(self):
def dtype(self):
"""Returns a numpy.dtype for the data type of the pixel values"""
pass

Expand Down Expand Up @@ -869,7 +869,7 @@ def bundle_axes(self, value):
# update the get_frame method
get_frame = _make_get_frame(self._bundle_axes,
self._get_frame_dict,
self.sizes, self.pixel_type)
self.sizes, self.dtype)
self._get_frame_wrapped = get_frame

@property
Expand Down
2 changes: 1 addition & 1 deletion pims/tiff_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _open(self, **kwargs):
self.bundle_axes, self.iter_axes = default_axes(self.sizes,
self.request.mode)
@property
def pixel_type(self):
def dtype(self):
return self._dtype

def _get_frame(self, **inds):
Expand Down

0 comments on commit c14f6f1

Please sign in to comment.