Commit 25036718 authored by Maxime Charpentier's avatar Maxime Charpentier

Update astropython.py

parent fcf59a4b
......@@ -142,8 +142,8 @@ def aperphot(fn, timekey=None, pos=[0,0], dap=[2,4,6], mask=None, verbose=False,
frame = fn
elif isinstance(fn, str) or isinstance(fn,string_):
if not path.isfile(fn):
print "file %s not found! exiting..." % fn
return thisobs
print("file %s not found! exiting..." % fn)
return(thisobs)
frame = pyfits.getdata(fn)
fixval(frame, nanval)
......@@ -160,8 +160,8 @@ def aperphot(fn, timekey=None, pos=[0,0], dap=[2,4,6], mask=None, verbose=False,
frame = rectspline(x1, y1)
if userInputMask and \
((frame.shape<>mask_targ.shape) or (frame.shape<>mask_sky.shape)):
print "User-entered mask did not have the correct size for the resampling"
print " input used (resamp=%1.3f). Beware!" % resamp
print("User-entered mask did not have the correct size for the resampling")
print(" input used (resamp=%1.3f). Beware!" % resamp)
stop
if ignorenan:
......
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