IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21376


Ignore:
Timestamp:
Feb 6, 2009, 9:17:29 AM (17 years ago)
Author:
Paul Price
Message:

Must have cut out a writeImage() call when merging. Whoops!
Adding additional error checking.

File:
1 edited

Legend:

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

    r21366 r21376  
    490490        pmHDU *hdu = readout->parent->parent->parent->hdu; // HDU for convolved image
    491491        assert(hdu);
     492        writeImage(imageNames->data[i], hdu->header, readout->image, config);
    492493        psMetadata *maskHeader = psMetadataCopy(NULL, hdu->header); // Copy of header, for mask
    493494        pmConfigMaskWriteHeader(config, maskHeader);
     
    630631    ppStackThreadInit();
    631632    ppStackThreadData *stack = ppStackThreadDataSetup(cells, imageNames, maskNames, varianceNames, config);
     633    if (!stack) {
     634        psError(PS_ERR_IO, false, "Unable to initialise stack threads.");
     635        psFree(subKernels);
     636        psFree(subRegions);
     637        psFree(inputMask);
     638        psFree(matchChi2);
     639        psFree(cells);
     640        psFree(covariances);
     641        return false;
     642    }
    632643
    633644    psTimerStart("PPSTACK_INITIAL");
Note: See TracChangeset for help on using the changeset viewer.