musevlt / mpdaf

MUSE Python Data Analysis Framework
BSD 3-Clause "New" or "Revised" License
15 stars 4 forks source link

bug in FSFModel.get_cube() #36

Open nfbouche opened 4 months ago

nfbouche commented 4 months ago

when using lbda in Angstrom, the line

def get_3darray(self, lbda, shape, center=None):
    """Return FSF cube at the given wavelengths."""
    return Moffat2D(self.get_fwhm(lbda, unit='pix'), self.get_beta(lbda),
                    shape, center)

should be

def get_3darray(self, lbda, shape, center=None):
    """Return FSF cube at the given wavelengths."""
    return Moffat2D(self.get_fwhm(lbda), self.get_beta(lbda),
                    shape, center)