IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2010, 6:42:01 PM (16 years ago)
Author:
Paul Price
Message:

Reworked ppStack to be better about error codes and their translation to exit codes.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src

    • Property svn:ignore
      •  

        old new  
        1010stamp-h1
        1111ppStackVersionDefinitions.h
         12ppStackErrorCodes.c
         13ppStackErrorCodes.h
  • trunk/ppStack/src/ppStackPhotometry.c

    r26928 r27004  
    6161    psArray *inSources = options->sources;
    6262    if (!inSources) {
    63         psError(PS_ERR_UNKNOWN, false, "Unable to find input sources");
     63        psError(PPSTACK_ERR_PROG, false, "Unable to find input sources");
    6464        psFree(photView);
    6565        return false;
     
    8383        !pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV") ||
    8484        !pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND")) {
    85         psError(PS_ERR_UNKNOWN, false, "Unable to drop PSPHOT internal files.");
     85        psError(PPSTACK_ERR_PROG, false, "Unable to drop PSPHOT internal files.");
    8686        return false;
    8787    }
     
    9292        pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources
    9393        pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // detections
    94         if (detections) {
    95             psAssert (detections->allSources, "missing sources?");
     94        if (detections && detections->allSources) {
    9695            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);
    9796        } else {
Note: See TracChangeset for help on using the changeset viewer.