IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23314


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

Dump configuration on completion of processing, not before.

Location:
trunk/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpArguments.c

    r23293 r23314  
    199199    psTrace("pswarp", 1, "Done with pswarpArguments...\n");
    200200
    201     // Dump configuration, now that's it's settled
    202     psString dump_file =  psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
    203     if (dump_file) {
    204         const char *skyCamera = psMetadataLookupStr(NULL, config->arguments,
    205                                                     "SKYCELL.CAMERA");  ///< Name of camera for skycell
    206         pmConfigCamerasCull(config, skyCamera);
    207         pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,MASKS,JPEG");
    208 
    209         pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSWARP.INPUT"); // Input file
    210         pmConfigDump(config, input->fpa, dump_file);
    211     }
    212 
    213201    return (config);
    214202}
  • trunk/pswarp/src/pswarpLoop.c

    r23293 r23314  
    7676    bool status;
    7777
     78    const char *skyCamera = psMetadataLookupStr(NULL, config->arguments,
     79                                                "SKYCELL.CAMERA");  ///< Name of camera for skycell
     80    pmConfigCamerasCull(config, skyCamera);
     81    pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,MASKS,JPEG");
     82
     83
    7884    // load the recipe
    7985    psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE);
     
    462468    }
    463469
     470    // Dump configuration
     471    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
     472    if (dump_file) {
     473        pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSWARP.INPUT"); // Input file
     474        pmConfigDump(config, input->fpa, dump_file);
     475    }
     476
    464477    return true;
    465478}
Note: See TracChangeset for help on using the changeset viewer.