mask_except_pixel

psfsubtraction.fitpsf.mask_except_pixel(self, pix)[source] [edit on github]

Helper function - make True/False mask that is True at pix

Parameters:
pix : int

Index in flattened image

Returns:
m : np.array of bool

Array that is True at and only at position pix.