IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23656


Ignore:
Timestamp:
Apr 1, 2009, 2:33:03 PM (17 years ago)
Author:
Paul Price
Message:

Unique error code for when we can't find stamps --- it indicates a data quality error, rather than an error in the code.

Location:
branches/pap/psModules/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/config/pmErrorCodes.dat

    r13654 r23656  
    1111OBJECTS                 Problem in objects
    1212SKY                     Problem in sky
     13STAMPS                  Unable to select stamps for PSF-matching
    1314# these errors correspond to standard exit conditions
    1415ARGUMENTS               Incorrect arguments
  • branches/pap/psModules/src/imcombine/pmSubtractionMatch.c

    r23308 r23656  
    1818#include "pmSubtractionMask.h"
    1919#include "pmSubtractionThreads.h"
     20#include "pmSubtractionVisual.h"
     21#include "pmErrorCodes.h"
     22
    2023#include "pmSubtractionMatch.h"
    21 #include "pmSubtractionVisual.h"
    2224
    2325#define BG_STAT PS_STAT_ROBUST_MEDIAN   // Statistic to use for background
     
    7375                                      stampSpacing, mode);
    7476    if (!*stamps) {
    75         psError(PS_ERR_UNKNOWN, false, "Unable to find stamps.");
     77        psError(psErrorCodeLast(), false, "Unable to find stamps.");
    7678        return false;
    7779    }
  • branches/pap/psModules/src/imcombine/pmSubtractionStamps.c

    r21363 r23656  
    2020#include "pmModel.h"
    2121#include "pmSource.h"
    22 
     22#include "pmErrorCodes.h"
    2323
    2424#include "pmSubtraction.h"
     
    355355    if (numGood == 0 && numFound == 0) {
    356356        // No good stamps
     357        psError(PM_ERR_STAMPS, true, "Unable to find suitable stamps");
    357358        psFree(stamps);
    358359        return NULL;
Note: See TracChangeset for help on using the changeset viewer.