def _init_mask_psf(self):
        """
        smaller frame that encolses all the idex_mask
        :param idex_mask:
        :param nx:
        :param ny:
        :return:
        """
        if not hasattr(self, '_x_min_psf'):
            idex_2d = self._idex_mask_2d
            self._x_min_psf = np.min(np.where(idex_2d == 1)[0])
            self._x_max_psf = np.max(np.where(idex_2d == 1)[0])
            self._y_min_psf = np.min(np.where(idex_2d == 1)[1])
            self._y_max_psf = np.max(np.where(idex_2d == 1)[1])
def _init_mask_psf ( self ) : if not hasattr ( self , '_x_min_psf' ) : idex_2d = self . _idex_mask_2d self . _x_min_psf = np . min ( np . where ( idex_2d == 1 ) [ 0 ] ) self . _x_max_psf = np . max ( np . where ( idex_2d == 1 ) [ 0 ] ) self . _y_min_psf = np . min ( np . where ( idex_2d == 1 ) [ 1 ] ) self . _y_max_psf = np . max ( np . where ( idex_2d == 1 ) [ 1 ] )
smaller frame that encolses all the idex_mask
        :param idex_mask:
        :param nx:
        :param ny:
        :return: