Changeset 19859
- Timestamp:
- Oct 2, 2008, 10:58:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080926/psphot/src/psphotReplaceUnfit.c
r17828 r19859 71 71 } 72 72 73 // add source, if the source has been subtracted (or if we ignore the state)73 // add source, if the source has been subtracted; do not modify state 74 74 bool psphotAddWithTest (pmSource *source, bool useState, psMaskType maskVal) { 75 75 … … 78 78 if (state && useState) return true; 79 79 80 // replace the model if 1) state says it is missing or 2) useState is false (just do it) 81 if (!state || !useState) { 82 pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal); 83 } 80 pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal); 84 81 return true; 85 82 } 86 83 87 // sub source, if the source has been added (or if we ignore the state)84 // sub source, if the source has been added; do not modify state 88 85 bool psphotSubWithTest (pmSource *source, bool useState, psMaskType maskVal) { 89 86 … … 92 89 if (state && useState) return true; 93 90 94 // replace the model if 1) state says it is missing or 2) useState is false (just do it) 95 if (!state || !useState) { 96 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 97 } 91 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 98 92 return true; 99 93 } 100 94 101 // add or sub source replace or if the source has95 // add or sub source to match recorded state: supply current state as true (add) or false (sub) 102 96 bool psphotSetState (pmSource *source, bool curState, psMaskType maskVal) { 103 97
Note:
See TracChangeset
for help on using the changeset viewer.
