IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2011, 5:26:55 AM (15 years ago)
Author:
eugene
Message:

avoid errors from duplicate metadata entries; only supply TIME_FINAL for convolved stack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCombineFinal.c

    r30874 r31054  
    114114
    115115    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_REPLACE, "Time to make final stack", psTimerMark("PPSTACK_FINAL"));
     121        }
    118122    }
    119123   
Note: See TracChangeset for help on using the changeset viewer.