Changeset 33089 for trunk/psphot/src
- Timestamp:
- Jan 11, 2012, 10:16:48 AM (15 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 13 edited
-
psphotApResid.c (modified) (1 diff)
-
psphotBlendFit.c (modified) (1 diff)
-
psphotExtendedSourceAnalysis.c (modified) (1 diff)
-
psphotExtendedSourceFits.c (modified) (1 diff)
-
psphotFindFootprints.c (modified) (1 diff)
-
psphotGuessModels.c (modified) (1 diff)
-
psphotKronIterate.c (modified) (1 diff)
-
psphotMagnitudes.c (modified) (2 diffs)
-
psphotRadialApertures.c (modified) (1 diff)
-
psphotRadialProfileWings.c (modified) (1 diff)
-
psphotReadout.c (modified) (2 diffs)
-
psphotSourceStats.c (modified) (2 diffs)
-
psphotTest.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r32348 r33089 154 154 155 155 // wait for the threads to finish and manage results 156 if (!psThreadPoolWait (false )) {156 if (!psThreadPoolWait (false, true)) { 157 157 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 158 psFree(cellGroups); 158 159 return false; 159 160 } -
trunk/psphot/src/psphotBlendFit.c
r32695 r33089 151 151 152 152 // wait for the threads to finish and manage results 153 if (!psThreadPoolWait (false )) {153 if (!psThreadPoolWait (false, true)) { 154 154 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 155 155 psFree (fitOptions); -
trunk/psphot/src/psphotExtendedSourceAnalysis.c
r32633 r33089 134 134 135 135 // wait for the threads to finish and manage results 136 if (!psThreadPoolWait (false )) {136 if (!psThreadPoolWait (false, true)) { 137 137 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 138 138 psFree(AnalysisRegion); -
trunk/psphot/src/psphotExtendedSourceFits.c
r32744 r33089 218 218 219 219 // wait for the threads to finish and manage results 220 if (!psThreadPoolWait (false )) {220 if (!psThreadPoolWait (false, true)) { 221 221 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 222 222 psFree(AnalysisRegion); -
trunk/psphot/src/psphotFindFootprints.c
r32348 r33089 35 35 psArray *tmp = pmFootprintArrayGrow(footprints, growRadius); 36 36 psImageConvolveSetThreads(oldThreads); 37 psLogMsg ("psphot", PS_LOG_MINUTIA, "grow footprint coverage by %d pixels, %ld footprints become %ld footprints: %f sec\n", growRadius, footprints->n, tmp->n, psTimerMark ("psphot.footprints")); 38 psFree(footprints); 39 footprints = tmp; 37 psLogMsg ("psphot", PS_LOG_MINUTIA, "grow footprint coverage by %d pixels, %ld footprints become %ld footprints: %f sec\n", growRadius, footprints->n, tmp ? tmp->n : 0, psTimerMark ("psphot.footprints")); 38 if (tmp) { 39 psFree(footprints); 40 footprints = tmp; 41 } else { 42 psLogMsg ("psphot", PS_LOG_WARN, "pmFootprintArray grow returned NULL\n"); 43 } 44 40 45 } 41 46 -
trunk/psphot/src/psphotGuessModels.c
r32996 r33089 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; -
trunk/psphot/src/psphotKronIterate.c
r32996 r33089 158 158 159 159 // wait for the threads to finish and manage results 160 if (!psThreadPoolWait (false )) {160 if (!psThreadPoolWait (false, true)) { 161 161 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 162 162 return false; -
trunk/psphot/src/psphotMagnitudes.c
r32348 r33089 129 129 130 130 // wait for the threads to finish and manage results 131 if (!psThreadPoolWait (false )) {131 if (!psThreadPoolWait (false, true)) { 132 132 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 133 133 return false; … … 309 309 310 310 // wait for the threads to finish and manage results 311 if (!psThreadPoolWait (false )) {311 if (!psThreadPoolWait (false, true)) { 312 312 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 313 313 return false; -
trunk/psphot/src/psphotRadialApertures.c
r32633 r33089 176 176 177 177 // wait for the threads to finish and manage results 178 if (!psThreadPoolWait (false )) {178 if (!psThreadPoolWait (false, true)) { 179 179 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 180 180 psFree(AnalysisRegion); -
trunk/psphot/src/psphotRadialProfileWings.c
r32996 r33089 147 147 148 148 // wait for the threads to finish and manage results 149 if (!psThreadPoolWait (false )) {149 if (!psThreadPoolWait (false, true)) { 150 150 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 151 151 return false; -
trunk/psphot/src/psphotReadout.c
r32996 r33089 133 133 // Construct an initial model for each object, set the radius to fitRadius, set circular 134 134 // fit mask. NOTE: only applied to sources without guess models 135 psphotGuessModels (config, view, filerule); // pass 1 135 // pass 1 136 if (!psphotGuessModels (config, view, filerule)) { 137 psLogMsg ("psphot", 3, "failure to Guess Model - pass 1"); 138 return psphotReadoutCleanup (config, view, filerule); 139 } 136 140 137 141 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) … … 155 159 // non-linear PSF and EXT fit to brighter sources 156 160 // replace model flux, adjust mask as needed, fit, subtract the models (full stamp) 161 // XXX: can leave faulted job in done queue 157 162 psphotBlendFit (config, view, filerule); // pass 1 (detections->allSources) 158 163 -
trunk/psphot/src/psphotSourceStats.c
r32699 r33089 216 216 217 217 // wait for the threads to finish and manage results 218 if (!psThreadPoolWait (false )) {218 if (!psThreadPoolWait (false, true)) { 219 219 psError(PS_ERR_UNKNOWN, false, "Failure in thread job PSPHOT_SOURCE_STATS"); 220 220 psFree(detections->newSources); … … 347 347 348 348 // wait for the threads to finish and manage results 349 if (!psThreadPoolWait (false )) {349 if (!psThreadPoolWait (false, true)) { 350 350 psError(PS_ERR_UNKNOWN, false, "Failure in thread job PSPHOT_SOURCE_STATS"); 351 351 return NULL; -
trunk/psphot/src/psphotTest.c
r29936 r33089 85 85 86 86 // wait for the threads to finish and manage results 87 if (!psThreadPoolWait (true )) {87 if (!psThreadPoolWait (true, true)) { 88 88 fprintf (stderr, "failure to run FillImage (2)"); 89 89 exit (1);
Note:
See TracChangeset
for help on using the changeset viewer.
