Changeset 13688 for trunk/ppStats/src/ppStatsLoop.c
- Timestamp:
- Jun 6, 2007, 2:36:33 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStatsLoop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsLoop.c
r13676 r13688 114 114 if (!data->doStats && psListLength(data->summary)) { 115 115 // Nothing further to do --- don't want to waste our time reading the data 116 if (psListLength(cellResults->list) > 0) {117 psMetadataAdd(chipResults, PS_LIST_TAIL, cellName, PS_DATA_METADATA,118 "Results for cell", cellResults);119 }120 116 goto cellDone; 121 117 } … … 152 148 if (data->sample <= 0.0) { 153 149 if (!psImageStats(data->stats, readout->image, readout->mask, data->maskVal)) { 154 ps LogMsg(__func__, PS_LOG_WARN,"Unable to perform statistics on cell %s --- ignored.\n", cellName);150 psWarning("Unable to perform statistics on cell %s --- ignored.\n", cellName); 155 151 goto statsDone; 156 152 } … … 210 206 statsDone: 211 207 // count saturated pixels 212 if (psListLength(data->summary) > 0) {208 if (psListLength(data->summary) > 0) { 213 209 bool get_nSatPixels = false; 214 210 bool get_fSatPixels = false; … … 316 312 result = cellStats(chipResults, cell, fits, data, config); 317 313 if (result != PS_EXIT_SUCCESS) { 318 psError (PS_ERR_IO, false, "trouble with cell stats for %d\n", view->cell); 319 if (fits) { 320 pmChipFreeData(chip); 321 } 322 psFree(chipResults); 323 return result; 314 psError(PS_ERR_UNKNOWN, false, "trouble with cell stats for %d\n", view->cell); 324 315 } 325 316 addToHierarchy(chipResults, fpaResults, chipName, "Results for chip"); 326 psFree (chipResults);317 psFree (chipResults); 327 318 if (fits) { 328 319 pmChipFreeData(chip); 329 320 } 330 return PS_EXIT_SUCCESS;321 return result; 331 322 } 332 323 … … 336 327 result = cellStats(chipResults, cell, fits, data, config); 337 328 if (result != PS_EXIT_SUCCESS) { 338 psError (PS_ERR_IO, false, "trouble with cell stats for %d\n", i);329 psError(PS_ERR_UNKNOWN, false, "trouble with cell stats for %d\n", i); 339 330 if (fits) { 340 331 pmChipFreeData(chip);
Note:
See TracChangeset
for help on using the changeset viewer.
