- Timestamp:
- Jul 17, 2014, 12:30:45 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/camera/pmReadoutFake.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/psModules/src/camera/pmReadoutFake.c
r35768 r37066 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" 27 27 #include "pmSourceDiffStats.h" 28 28 #include "pmSourceSatstar.h" 29 #include "pmSourceLensing.h" 29 30 #include "pmSource.h" 30 31 #include "pmSourceFitModel.h" … … 54 55 55 56 psF32 *params = model->params->data.F32; // Model parameters 56 psEllipseAxes axes = pmPSF_ModelToAxes(params, model-> type); // Ellipse axes57 psEllipseAxes axes = pmPSF_ModelToAxes(params, model->class->useReff); // Ellipse axes 57 58 // Curiously, the minor axis can be larger than the major axis, so need to check. 58 59 if (axes.major >= axes.minor) { … … 61 62 axes.major = axes.minor; 62 63 } 63 return pmPSF_AxesToModel(params, axes, model-> type);64 return pmPSF_AxesToModel(params, axes, model->class->useReff); 64 65 } 65 66 … … 121 122 } 122 123 123 flux /= normModel-> modelFlux(normModel->params);124 flux /= normModel->class->modelFlux(normModel->params); 124 125 psFree(normModel); 125 126 } … … 163 164 float fakeRadius = 1.0; // Radius of fake source 164 165 if (isfinite(minFlux)) { 165 fakeRadius = PS_MAX(fakeRadius, fakeModel-> modelRadius(fakeModel->params, minFlux));166 fakeRadius = PS_MAX(fakeRadius, fakeModel->class->modelRadius(fakeModel->params, minFlux)); 166 167 } 167 168 if (radius > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
