IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23315


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

Dump configuration on completion of processing, not before.

Location:
trunk/ppSub/src
Files:
2 edited

Legend:

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

    r23298 r23315  
    397397    psTrace("ppSub", 1, "Done reading command-line arguments\n");
    398398
    399     // Dump configuration, now that's it's settled
    400     psBool status;
    401     psString dump_file =  psMetadataLookupStr(&status, config->arguments, "-dumpconfig");
    402     if (dump_file) {
    403         pmConfigCamerasCull(config, NULL);
    404         pmConfigRecipesCull(config, "PPSUB,PPSTATS,PSPHOT,MASKS,JPEG");
    405 
    406         pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file
    407         pmConfigDump(config, input->fpa, dump_file);
    408     }
    409 
    410399    // XXX move this to ppSubArguments
    411400    int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
  • 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.