Commit dd6cd1a7 authored by Maxime Charpentier's avatar Maxime Charpentier

Update astropython.py

parent 6a5142dd
......@@ -765,8 +765,8 @@ def subreg(fn, center=None, dim=None, verbose=False):
except IndexError:
print("Likely invalid center position for Frame %i (%s): %s." % \
(iter, file, str(center[iter])))
print("Using offsets for Frame 0 (%s) instead." % str(center[0])
subreg = f[xstartval:xendval, ystartval:yendval])
print("Using offsets for Frame 0 (%s) instead." % str(center[0]))
subreg = f[xstartval:xendval, ystartval:yendval]
except:
print("Some error occurred. Using offsets for Frame 0 (%s) instead." % \
str(center[0]))
......
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