IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22730


Ignore:
Timestamp:
Mar 2, 2009, 10:39:25 AM (17 years ago)
Author:
Paul Price
Message:

Attempt to write output files when photometry fails, but still return an error.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

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

    r21526 r22730  
    11631163        fileActivation(config, photFiles, true);
    11641164        pmFPAview *photView = filesIterateDown(config);
     1165        fileActivation(config, combineFiles, true);
     1166
    11651167        if (!ppStackPhotometry(config, outRO, photView)) {
    11661168            psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry on output.");
     1169            filesIterateUp(config);
    11671170            psFree(outRO);
    11681171            psFree(photView);
     
    11701173        }
    11711174        psFree(photView);
    1172 
    1173         fileActivation(config, combineFiles, true);
    11741175
    11751176        if (stats) {
  • trunk/ppStack/src/ppStackPhotometry.c

    r21259 r22730  
    149149    if (!psphotReadoutKnownSources(config, view, inSources)) {
    150150        // Clear the error, so that the output files are written.
    151         psWarning("Unable to perform photometry on stacked image.");
    152         psErrorStackPrint(stderr, "Error stack from photometry:");
    153         psErrorClear();
     151        psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry on stacked image.");
     152        return false;
    154153    }
    155154
Note: See TracChangeset for help on using the changeset viewer.