IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23364


Ignore:
Timestamp:
Mar 17, 2009, 2:55:40 PM (17 years ago)
Author:
Paul Price
Message:

Dump configuration after processing, so it has all the filenames.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

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

    r23242 r23364  
    295295    psTrace("ppStack", 1, "Done parsing arguments\n");
    296296
    297     // Dump configuration, now that's it's settled
    298     bool status;
    299     psString dump_file =  psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
    300     if (dump_file) {
    301         pmConfigCamerasCull(config, NULL);
    302         pmConfigRecipesCull(config, "PPSTACK,PPSUB,PPSTATS,PSPHOT,MASKS,JPEG");
    303 
    304         pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSTACK.INPUT"); // Input file
    305         pmConfigDump(config, input->fpa, dump_file);
    306     }
     297    pmConfigCamerasCull(config, NULL);
     298    pmConfigRecipesCull(config, "PPSTACK,PPSUB,PPSTATS,PSPHOT,MASKS,JPEG");
    307299
    308300    return true;
  • trunk/ppStack/src/ppStackFinish.c

    r23341 r23364  
    6060    }
    6161
     62
     63    // Dump configuration
     64    bool mdok;                          // Status of MD lookup
     65    psString dump = psMetadataLookupStr(&mdok, config->arguments, "DUMP_CONFIG"); // File for config
     66    if (dump) {
     67        pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSTACK.INPUT"); // Input file
     68        pmConfigDump(config, input->fpa, dump);
     69    }
     70
    6271    return true;
    6372}
Note: See TracChangeset for help on using the changeset viewer.