IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29080


Ignore:
Timestamp:
Aug 30, 2010, 12:59:58 PM (16 years ago)
Author:
rhenders
Message:

Fixed bug whereby detections not included in final FITS file could count towards min and max object IDs for batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPspsBatchDetection.c

    r28992 r29080  
    305305                        numInvalidFlux++;
    306306                    }
    307 
    308                     // store max/min objID
    309                     if (objID[s] > maxObjID) maxObjID = objID[s];
    310                     if (objID[s] < minObjID) minObjID = objID[s];
    311 
     307                    else {
     308
     309                        // store max/min objID
     310                        if (objID[s] > maxObjID) maxObjID = objID[s];
     311                        if (objID[s] < minObjID) minObjID = objID[s];
     312                    }
    312313                    totalDetections++;
    313314                }
Note: See TracChangeset for help on using the changeset viewer.