Skip to content

Commit

Permalink
minor correction to pass testes
Browse files Browse the repository at this point in the history
  • Loading branch information
bazkiaei committed Jul 6, 2023
1 parent e83ec7c commit 3aa53d0
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 3aa53d0

Please sign in to comment.