Commit 6a5142dd authored by Maxime Charpentier's avatar Maxime Charpentier

Update astropython.py

parent 234eb859
......@@ -753,7 +753,7 @@ def subreg(fn, center=None, dim=None, verbose=False):
xendval = min([temp.shape[1], 1+cen[0] + (sz[0]-1)/2.]).astype(int)
ystartval = max([0,cen[1] - (sz[1]-1)/2.]).astype(int)
yendval = min([temp.shape[2], 1+cen[1] + (sz[1]-1)/2.]).astype(int)
if verbose>0: print "subregion limits: ", xstartval,xendval,ystartval,yendval
if verbose>0: print("subregion limits: ", xstartval,xendval,ystartval,yendval)
subreg = temp[0,xstartval:xendval,ystartval:yendval]
stack = zeros((nfiles,) + subreg.shape, float)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment