Skip to content

Commit 7200308

Browse files
committed
Fix SubImage returning incorrect read_subregion result [fixes #162]
1 parent 1b25497 commit 7200308

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spectral/io/spyfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,11 @@ def read_subregion(self, row_bounds, col_bounds, bands=None):
533533
534534
An `MxNxL` array.
535535
'''
536-
return self.parent.read_subimage(list(np.array(row_bounds) \
537-
+ self.row_offset),
538-
list(np.array(col_bounds) \
539-
+ self.col_offset),
540-
bands)
536+
return self.parent.read_subregion(list(np.array(row_bounds) \
537+
+ self.row_offset),
538+
list(np.array(col_bounds) \
539+
+ self.col_offset),
540+
bands)
541541

542542

543543
def tile_image(im, nrows, ncols):

0 commit comments

Comments
 (0)