IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31054 for trunk/ppStack


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

Location:
trunk/ppStack/src
Files:
4 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   
  • trunk/ppStack/src/ppStackCombineInitial.c

    r30874 r31054  
    8989
    9090    if (options->stats) {
    91         psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", 0,
    92                          "Time to make initial stack", psTimerMark("PPSTACK_INITIAL"));
     91        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", PS_META_REPLACE, "Time to make initial stack", psTimerMark("PPSTACK_INITIAL"));
    9392    }
    9493
  • trunk/ppStack/src/ppStackConvolve.c

    r30874 r31054  
    368368
    369369    if (options->stats) {
    370       psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", 0,
     370      psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", PS_META_REPLACE,
    371371                       "Time to convolve input images", psTimerMark("PPSTACK_CONVOLVE"));
    372372    }
  • trunk/ppStack/src/ppStackPhotometry.c

    r30620 r31054  
    8484            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
    8585        }
    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_REPLACE, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
    8787    }
    8888
Note: See TracChangeset for help on using the changeset viewer.