IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28182 for trunk


Ignore:
Timestamp:
Jun 1, 2010, 3:57:49 PM (16 years ago)
Author:
Paul Price
Message:

Turn 'all images rejected' into bad quality instead of error.

Location:
trunk/ppStack/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackConvolve.c

    r27218 r28182  
    235235
    236236    if (numGood == 0) {
    237         psError(PPSTACK_ERR_REJECTED, false, "No good images to combine.");
     237        options->quality = PPSTACK_ERR_REJECTED;
     238        psErrorStackPrint(stderr, "No good images survived convolution stage.");
     239        psErrorClear();
     240        psWarning("No good images survived convolution stage.");
    238241        psFree(fpaList);
    239242        psFree(cellList);
    240         return false;
     243        return true;
    241244    }
    242245
     
    324327
    325328    if (numGood == 0) {
    326         psError(PPSTACK_ERR_REJECTED, false, "No good images to combine.");
    327         return false;
     329        options->quality = PPSTACK_ERR_REJECTED;
     330        psErrorStackPrint(stderr, "No good images survived convolution stage.");
     331        psErrorClear();
     332        psWarning("No good images survived convolution stage.");
     333        return true;
    328334    }
    329335
  • trunk/ppStack/src/ppStackLoop.c

    r27427 r28182  
    9191    ppStackMemDump("convolve");
    9292
     93    if (options->quality) {
     94        // Can't do anything else
     95        return true;
     96    }
     97
    9398    // Ensure sufficient inputs
    9499    {
     
    97102        bool safe = psMetadataLookupBool(NULL, recipe, "SAFE"); // Be safe when combining
    98103        if (safe && numGood <= 1) {
    99             psError(PPSTACK_ERR_REJECTED, true, "Insufficient inputs for combination with safety on");
    100             return false;
     104            options->quality = PPSTACK_ERR_REJECTED;
     105            psErrorStackPrint(stderr, "Insufficient inputs for combination with safety on");
     106            psErrorClear();
     107            psWarning("Insufficient inputs for combination with safety on");
     108            return true;
    101109        }
    102110    }
     
    147155        int numGood = stackSummary(options, "final combination");
    148156        if (numGood <= 0) {
    149             psError(PPSTACK_ERR_REJECTED, true, "Insufficient inputs for combination");
    150             return false;
     157            options->quality = PPSTACK_ERR_REJECTED;
     158            psErrorStackPrint(stderr, "Insufficient inputs survived rejection stage");
     159            psErrorClear();
     160            psWarning("Insufficient inputs survived rejection stage");
     161            return true;
    151162        }
    152163    }
  • trunk/ppStack/src/ppStackReject.c

    r27427 r28182  
    166166    psFree(options->inspect); options->inspect = NULL;
    167167
    168     if (numRejected >= num) {
    169         psError(PPSTACK_ERR_REJECTED, true, "All inputs completely rejected; unable to proceed.");
    170         return false;
    171     }
    172 
    173168    if (options->stats) {
    174169        psMetadataAddS32(options->stats, PS_LIST_TAIL, "REJECT_IMAGES", 0,
Note: See TracChangeset for help on using the changeset viewer.