Closed Trienko closed 9 years ago
This looks like a bug in pyxis. However, it should only be triggered if your mask is not a FITS file. Could you post the commands that you ran, to make and use the mask?
thresh = peak_flux*0.08
print "thresh = ",thresh
#mask_im is a fits file
imager.make_threshold_mask(input=mask_im,threshold=thresh) # make mask
imager.make_image(column=column,dirty=options,restore=options,restore_lsm=False,mask=True)
I still haven't answered @Trienko :).
You are passing a boolean as a clean mask. Try, mask=mask_im
in
imager.make_image(column=column,dirty=options,restore=options,restore_lsm=False,mask=True)
Works... On 23 Apr 2015 5:00 PM, "Sphesihle Makhathini" notifications@github.com wrote:
I still haven't answered Trienko :). you are passing a boolean as a clean mask. Try, mask=mask_im in
imager.make_image(column=column,dirty=options,restore=options,restore_lsm=False,mask=True)
— Reply to this email directly or view it on GitHub https://github.com/ska-sa/pyxis/issues/39#issuecomment-95615527.
Cool.
:-) On 23 Apr 2015 8:05 PM, "Sphesihle Makhathini" notifications@github.com wrote:
Cool.
— Reply to this email directly or view it on GitHub https://github.com/ska-sa/pyxis/issues/39#issuecomment-95673118.
Could someone please advise in what could be going wrong, I am trying to clean with a mask. I have successfully called imager.make_threshold_mask to make the mask, the mask fits file also exists. The imager variable is MASK_IMAGE is also set to this file. When I then call make_image it fails saying that MAKS_IMAGE is defined. What am I doing wrong?