Changeset 31053
- Timestamp:
- Mar 25, 2011, 5:05:43 AM (15 years ago)
- Location:
- tags/ipp-20110218/ppStack/src
- Files:
-
- 4 edited
-
ppStackCombineFinal.c (modified) (3 diffs)
-
ppStackCombineInitial.c (modified) (1 diff)
-
ppStackConvolve.c (modified) (2 diffs)
-
ppStackPhotometry.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110218/ppStack/src/ppStackCombineFinal.c
r30985 r31053 11 11 12 12 psTimerStart("PPSTACK_FINAL"); 13 13 14 14 pmReadout *outRO = options->outRO; // Output readout 15 15 pmReadout *expRO = options->expRO; // Exposure readout … … 87 87 bool haveCovariances = false; 88 88 if (covariances) { 89 for (int i = 0; i < covariances->n; i++) {90 haveCovariances |= (covariances->data[i] != NULL);91 }89 for (int i = 0; i < covariances->n; i++) { 90 haveCovariances |= (covariances->data[i] != NULL); 91 } 92 92 } 93 93 … … 114 114 115 115 if (options->stats) { 116 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_FINAL", 0, 117 "Time to make final stack", psTimerMark("PPSTACK_FINAL")); 116 // only add the timer if it has not been set (convolved stack) 117 // XXX this is weak: we should be distinguishing explicitly between convolved and unconvolved stacks 118 psMetadataLookupF32 (&status, options->stats, "TIME_FINAL"); 119 if (!status) { 120 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_FINAL", PS_META_DUPLICATE_OK, "Time to make final stack", psTimerMark("PPSTACK_FINAL")); 121 } 118 122 } 119 123 120 124 return true; 121 125 } -
tags/ipp-20110218/ppStack/src/ppStackCombineInitial.c
r30985 r31053 89 89 90 90 if (options->stats) { 91 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", 0,91 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", PS_META_DUPLICATE_OK, 92 92 "Time to make initial stack", psTimerMark("PPSTACK_INITIAL")); 93 93 } -
tags/ipp-20110218/ppStack/src/ppStackConvolve.c
r30985 r31053 17 17 18 18 psTimerStart("PPSTACK_CONVOLVE"); 19 19 20 20 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe 21 21 psAssert(recipe, "We've thrown an error on this before."); … … 368 368 369 369 if (options->stats) { 370 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", 0,371 "Time to convolve input images", psTimerMark("PPSTACK_CONVOLVE"));372 } 373 370 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", PS_META_DUPLICATE_OK, 371 "Time to convolve input images", psTimerMark("PPSTACK_CONVOLVE")); 372 } 373 374 374 return true; 375 375 } -
tags/ipp-20110218/ppStack/src/ppStackPhotometry.c
r30620 r31053 84 84 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0); 85 85 } 86 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));86 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", PS_META_DUPLICATE_OK, "Time to do photometry", psTimerMark("PPSTACK_PHOT")); 87 87 } 88 88
Note:
See TracChangeset
for help on using the changeset viewer.
