Skip to content

Commit e6abf4b

Browse files
committed
wcs can only take integer indices
1 parent 5d9ffe1 commit e6abf4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/alma/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def pyregion_subset(region, data, mywcs):
6666
xhi=xhi,
6767
yhi=yhi))
6868

69-
subwcs = mywcs[ylo:yhi, xlo:xhi]
69+
subwcs = mywcs[int(ylo):int(yhi), int(xlo):int(xhi)]
7070
subhdr = subwcs.sub([wcs.WCSSUB_CELESTIAL]).to_header()
71-
subdata = data[ylo:yhi, xlo:xhi]
71+
subdata = data[int(ylo):int(yhi), int(xlo):int(xhi)]
7272

7373
mask = shapelist.get_mask(header=subhdr,
7474
shape=subdata.shape)

0 commit comments

Comments
 (0)