IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 12:45:01 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap (detection efficiency development) into trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psModules/src/camera/pmReadoutFake.c

    r25324 r25383  
    8282    }
    8383    PS_ASSERT_PTR_NON_NULL(psf, false);
    84     if (radius > 0 && isfinite(minFlux) && minFlux > 0.0) {
    85         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot define both minimum flux and fixed radius.");
    86         return false;
    87     }
    8884
    8985    readout->image = psImageRecycle(readout->image, numCols, numRows, PS_TYPE_F32);
     
    128124        pmSource *fakeSource = pmSourceAlloc(); // Fake source to generate
    129125        fakeSource->peak = pmPeakAlloc(xSrc, ySrc, fakeModel->params->data.F32[PM_PAR_I0], PM_PEAK_LONE);
    130         float fakeRadius = radius > 0 ? radius :
    131             PS_MAX(1.0, fakeModel->modelRadius(fakeModel->params, minFlux)); // Radius of fake source
     126        float fakeRadius = 1.0;         // Radius of fake source
     127        if (isfinite(minFlux)) {
     128            fakeRadius = PS_MAX(fakeRadius, fakeModel->modelRadius(fakeModel->params, minFlux));
     129        }
     130        if (radius > 0) {
     131            fakeRadius = PS_MAX(fakeRadius, radius);
     132        }
    132133
    133134        if (xOffset) {
Note: See TracChangeset for help on using the changeset viewer.