Skip to content

Commit

Permalink
Merge pull request #45 from LSSTDESC/u/jchiang/get_LSST_flux_bug_fix
Browse files Browse the repository at this point in the history
bug-fix in BaseObject.get_LSST_flux
  • Loading branch information
JoanneBogart authored Jun 5, 2023
2 parents 84c8978 + 967a70a commit 02fe4a3
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 02fe4a3

Please sign in to comment.