wrapper_ignore_all_masked

psfsubtraction.fitpsf.wrapper_ignore_all_masked(func)[source] [edit on github]

Wrap a optregion function to remove all masked pixels from optregion.

This function wraps the optregion function func. Optimization regions are determined by that function, but are then additionally filtered such that points that are masked in either the image or and used psfbase are not part of the returned optregion.

Parameters:
func : callable

function to be wrapped.

Returns:
func_and_fitmask : function

wrapped func