IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.