Skip to content

Commit

Permalink
Make minor edits to allow unit tests to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
bazkiaei authored and leeskelvin committed Jul 10, 2023
1 parent 3d6e77d commit f8f74e8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/lsst/meas/algorithms/brightStarStamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def initAndNormalize(
badMaskPlanes=badMaskPlanes,
)

except RuntimeError as err:
except RuntimeError:
stamp.annularFlux = np.nan
logger.error(
"The annulux flux was not found for radii {} and {}".format(
Expand All @@ -411,17 +411,14 @@ def initAndNormalize(
stamp.optimalOuterRadius = newOuterRadius
stamp.optimalInnerRadius = newInnerRadius
break
# elif newInnerRadius > maxInnerRadius:
# logger.info("The star with gaiaId of {} is impossible to normalize!".format(stamp.gaiaId))
# break
else:
stamp.annularFlux = np.nan
# Remove rejected stamps.
bss.normalized = True
if discardNanFluxObjects:
for reject in rejects:
bss._stamps.remove(reject)
elif forceFindFlux:
elif forceFindFlux:
for badStamp in badStamps:
bss._stamps.remove(badStamp)
bss._innerRadius, bss._outerRadius = None, None
Expand Down

0 comments on commit f8f74e8

Please sign in to comment.