diff --git a/python/desc/skycatalogs/objects/base_object.py b/python/desc/skycatalogs/objects/base_object.py index d1db398a..8a10ab15 100644 --- a/python/desc/skycatalogs/objects/base_object.py +++ b/python/desc/skycatalogs/objects/base_object.py @@ -438,8 +438,8 @@ def get_fluxes(self, bandpasses, mjd=None): def get_LSST_flux(self, band, sed=None, cache=True, mjd=None): if not band in LSST_BANDS: return None + att = f'lsst_flux_{band}' if mjd is None: - att = f'lsst_flux_{band}' # Check if it's already an attribute val = getattr(self, att, None) if val is not None: