Skip to content

Commit 3aa53d0

Browse files
committed
minor correction to pass testes
1 parent e83ec7c commit 3aa53d0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python/lsst/meas/algorithms/brightStarStamps.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def initAndNormalize(
394394
badMaskPlanes=badMaskPlanes,
395395
)
396396

397-
except RuntimeError as err:
397+
except RuntimeError:
398398
stamp.annularFlux = np.nan
399399
logger.error(
400400
"The annulux flux was not found for radii {} and {}".format(
@@ -411,17 +411,14 @@ def initAndNormalize(
411411
stamp.optimalOuterRadius = newOuterRadius
412412
stamp.optimalInnerRadius = newInnerRadius
413413
break
414-
# elif newInnerRadius > maxInnerRadius:
415-
# logger.info("The star with gaiaId of {} is impossible to normalize!".format(stamp.gaiaId))
416-
# break
417414
else:
418415
stamp.annularFlux = np.nan
419416
# Remove rejected stamps.
420417
bss.normalized = True
421418
if discardNanFluxObjects:
422419
for reject in rejects:
423420
bss._stamps.remove(reject)
424-
elif forceFindFlux:
421+
elif forceFindFlux:
425422
for badStamp in badStamps:
426423
bss._stamps.remove(badStamp)
427424
bss._innerRadius, bss._outerRadius = None, None

0 commit comments

Comments
 (0)