Changeset 25383 for trunk/psModules/src/camera/pmReadoutFake.c
- Timestamp:
- Sep 15, 2009, 12:45:01 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/camera/pmReadoutFake.c (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 25238,25241-25243,25246,25258-25267,25278,25302,25309-25312,25326-25329,25331-25339
- Property svn:mergeinfo changed
-
trunk/psModules/src/camera/pmReadoutFake.c
- Property svn:mergeinfo changed
/branches/pap/psModules/src/camera/pmReadoutFake.c merged: 25243,25310
r25324 r25383 82 82 } 83 83 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 }88 84 89 85 readout->image = psImageRecycle(readout->image, numCols, numRows, PS_TYPE_F32); … … 128 124 pmSource *fakeSource = pmSourceAlloc(); // Fake source to generate 129 125 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 } 132 133 133 134 if (xOffset) { - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
