Skip to content

Commit

Permalink
set att variable so that it's available in all needed contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Jun 5, 2023
1 parent 84c8978 commit 967a70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/desc/skycatalogs/objects/base_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 967a70a

Please sign in to comment.