diff --git a/src/omero/hdfstorageV2.py b/src/omero/hdfstorageV2.py index ca3283dd4..e6f96639a 100755 --- a/src/omero/hdfstorageV2.py +++ b/src/omero/hdfstorageV2.py @@ -587,13 +587,8 @@ def read(self, stamp, colNumbers, start, stop, current): for col in cols: col.read(self.__mea, start, stop) - if start is not None and stop is not None: - rowNumbers = list(range(start, stop)) - elif start is not None and stop is None: - rowNumbers = list(range(start, self.__length())) - elif start is None and stop is None: - rowNumbers = list(range(self.__length())) - + allRows = list(range(self.__length())) + rowNumbers = allRows[start:stop] return self._as_data(cols, rowNumbers, current) @stamped