Exemplo n.º 1
0
    def __init__(self, data, psf, psf_type='fixed'):

        self.y = data
        self.psf = psf
        self.psf_type = psf_type

        PowerMethod.__init__(self, self.MtMX, self.y.shape)
Exemplo n.º 2
0
    def __init__(self, data, psf_pcs, psf_coef, data_format='map'):

        self.y = data
        self.psf_pcs = np.array(psf_pcs)
        self.psf_coef = np.array(psf_coef)

        if data_format in ('map', 'cube'):
            self.data_format = data_format
        else:
            raise ValueError('Invalid data type. Options are "map" or "cube".')

        PowerMethod.__init__(self, self.MtMX, self.psf_coef.shape[1:],
                             auto_run=False)
Exemplo n.º 3
0
    def __init__(self, data, psf, psf_type='fixed', data_format='cube'):

        self.y = data
        self.psf = psf

        if psf_type in ('fixed', 'obj_var'):
            self.psf_type = psf_type
        else:
            raise ValueError('Invalid PSF type. Options are fixed or obj_var')

        if data_format in ('map', 'cube'):
            self.data_format = data_format
        else:
            raise ValueError('Invalid data type. Options are map or cube.')

        PowerMethod.__init__(self, self.MtMX, self.y.shape, auto_run=False)