IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19211


Ignore:
Timestamp:
Aug 26, 2008, 8:29:40 AM (18 years ago)
Author:
Paul Price
Message:

Avoiding error:"radius is 0 or less" from pmSourceDefinePixels.

File:
1 edited

Legend:

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

    r18318 r19211  
    126126        pmSource *fakeSource = pmSourceAlloc(); // Fake source to generate
    127127        fakeSource->peak = pmPeakAlloc(x, y, fakeModel->params->data.F32[PM_PAR_I0], PM_PEAK_LONE);
    128         float fakeRadius = radius > 0 ? radius : fakeModel->modelRadius(fakeModel->params, minFlux); // Radius
     128        float fakeRadius = radius > 0 ? radius :
     129            PS_MAX(1.0, fakeModel->modelRadius(fakeModel->params, minFlux)); // Radius of fake source
    129130
    130131        if (xOffset) {
Note: See TracChangeset for help on using the changeset viewer.