IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2009, 7:22:47 PM (17 years ago)
Author:
Paul Price
Message:

Dump configuration on completion of processing, not before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubLoop.c

    r23173 r23315  
    2323bool ppSubLoop(pmConfig *config)
    2424{
     25    psAssert(config, "Require configuration.");
     26
     27    pmConfigCamerasCull(config, NULL);
     28    pmConfigRecipesCull(config, "PPSUB,PPSTATS,PSPHOT,MASKS,JPEG");
     29
    2530    bool mdok;                          // Status of MD lookup
    2631    const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); // Filename for statistics
     
    172177    }
    173178
     179    psString dump_file = psMetadataLookupStr(&mdok, config->arguments, "-dumpconfig");
     180    if (dump_file) {
     181
     182        pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file
     183        pmConfigDump(config, input->fpa, dump_file);
     184    }
     185
    174186    return true;
    175187}
Note: See TracChangeset for help on using the changeset viewer.