File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed 
python/lsst/meas/algorithms Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments