- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (2 props)
-
psphot/src/psphotGuessModels.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src
- Property svn:ignore
-
old new 22 22 psphotMakePSF 23 23 psphotStack 24 psphotModelTest
-
- Property svn:mergeinfo set to
- Property svn:ignore
-
branches/meh_branches/ppstack_test/psphot/src/psphotGuessModels.c
r31452 r33415 46 46 psAssert (detections, "missing detections?"); 47 47 48 psArray *sources = detections-> newSources;48 psArray *sources = detections->allSources; 49 49 psAssert (sources, "missing sources?"); 50 50 … … 112 112 // wait here for the threaded jobs to finish 113 113 // fprintf (stderr, "wait for threads (%d, %d)\n", jx, jy); 114 if (!psThreadPoolWait (false)) { 114 if (!psThreadPoolWait (false, true)) { 115 // harvest our jobs 116 psFree(cellGroups); 115 117 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 116 118 return false; … … 141 143 psFree (cellGroups); 142 144 143 psLogMsg ("psphot.models", 4, "built models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot.models"));145 psLogMsg ("psphot.models", PS_LOG_WARN, "built models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot.models")); 144 146 return true; 145 147 } … … 159 161 for (int i = 0; i < sources->n; i++) { 160 162 pmSource *source = sources->data[i]; 163 164 // do not redo sources already guessed 165 if (source->tmpFlags & PM_SOURCE_TMPF_MODEL_GUESS) continue; 161 166 162 167 // this is used to mark sources for which the model is measured. We check later that … … 169 174 if (source->type == PM_SOURCE_TYPE_SATURATED) continue; 170 175 if (!source->peak) continue; 176 177 // psAssert (source->peak->footprint, "peak without footprint??"); 171 178 172 179 nSrc ++;
Note:
See TracChangeset
for help on using the changeset viewer.
