Skip to content

Prevent photutils warning on deblending mode #2

@Yash-10

Description

@Yash-10

If the source has negative values, the deblending procedure from photutils outputs warnings like this:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions