Open Yash-10 opened 2 years ago
If the source has negative values, the deblending procedure from photutils outputs warnings like this:
photutils
WARNING: Source "2" contains negative values, setting deblending mode to "linear" [photutils.segmentation.deblend]
It would be helpful to handle such situations within galmask itself to prevent long, verbose warning messages.
Eg:
if np.any(source < 0): # set deblending mode to linear else: # keep it as default
I think this could be a non-issue. Is it helpful to explicitly see what deblending mode is set? If yes, we should close this, else tackle this..
If the source has negative values, the deblending procedure from
photutils
outputs warnings like this:It would be helpful to handle such situations within galmask itself to prevent long, verbose warning messages.
Eg: