psfsubtraction.fitpsf.all_unmasked(self, region, indpsf)[source] [edit on github]

Here we select the maximal region.

The region is maximal in the sense that it includes all pixels that are not masked in the data or any of the bases.

optregion : np.array of type bool

True for those pixels that should be included in the fit