IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2008, 11:52:36 AM (18 years ago)
Author:
eugene
Message:

modify handling of errors in generating the model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmReadoutFake.c

    r19281 r19997  
    8181    pmModel *fakeModel = pmModelFromPSFforXY(psf, (float)numCols / 2.0, (float)numRows / 2.0,
    8282                                             1.0); // Fake model, with central intensity of 1.0
     83    psAssert (fakeModel, "failed to generate model: should this be an error or not?");
     84
    8385
    8486    float flux0 = fakeModel->modelFlux(fakeModel->params); // Flux for central intensity of 1.0
     
    110112        pmModel *fakeModel = pmModelFromPSFforXY(psf, x, y, powf(10.0, -0.4 * source->psfMag) / flux0);
    111113        if (!fakeModel) {
    112             psErrorClear();
    113114            continue;
    114115        }
Note: See TracChangeset for help on using the changeset viewer.