- Timestamp:
- Jun 17, 2014, 5:58:38 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140610
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/camera/pmReadoutFake.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140610
- Property svn:mergeinfo changed
/trunk (added) merged: 36846-36871,36874,36879,36882
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140610/psModules/src/camera/pmReadoutFake.c
r36623 r36884 20 20 #include "pmMoments.h" 21 21 #include "pmModelFuncs.h" 22 #include "pmModelClass.h" 22 23 #include "pmModel.h" 23 24 #include "pmModelUtils.h" 24 #include "pmModelClass.h"25 25 #include "pmSourceMasks.h" 26 26 #include "pmSourceExtendedPars.h" … … 55 55 56 56 psF32 *params = model->params->data.F32; // Model parameters 57 psEllipseAxes axes = pmPSF_ModelToAxes(params, model-> type); // Ellipse axes57 psEllipseAxes axes = pmPSF_ModelToAxes(params, model->class->useReff); // Ellipse axes 58 58 // Curiously, the minor axis can be larger than the major axis, so need to check. 59 59 if (axes.major >= axes.minor) { … … 62 62 axes.major = axes.minor; 63 63 } 64 return pmPSF_AxesToModel(params, axes, model-> type);64 return pmPSF_AxesToModel(params, axes, model->class->useReff); 65 65 } 66 66 … … 122 122 } 123 123 124 flux /= normModel-> modelFlux(normModel->params);124 flux /= normModel->class->modelFlux(normModel->params); 125 125 psFree(normModel); 126 126 } … … 164 164 float fakeRadius = 1.0; // Radius of fake source 165 165 if (isfinite(minFlux)) { 166 fakeRadius = PS_MAX(fakeRadius, fakeModel-> modelRadius(fakeModel->params, minFlux));166 fakeRadius = PS_MAX(fakeRadius, fakeModel->class->modelRadius(fakeModel->params, minFlux)); 167 167 } 168 168 if (radius > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
