IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26008


Ignore:
Timestamp:
Nov 2, 2009, 6:07:02 PM (17 years ago)
Author:
watersc1
Message:

Inserted the dumpconfig code that was commented out.

Made edit so that -sigma command line argument is respected.

Location:
trunk/ppSmooth/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSmooth/src/ppSmoothArguments.c

    r25976 r26008  
    6666        psArgumentRemove (argnum, &argc, argv);
    6767    }
     68    //    XXX ADD this in?
     69    if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {
     70        psArgumentRemove(argnum, &argc, argv);
     71        psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,
     72                         "Filename for configuration dump", argv[argnum]);
     73        psArgumentRemove(argnum, &argc, argv);
     74    }
    6875
    6976    if (argc != 2) usage ();
     
    7178    // Add the input and output images (which remain on the command-line) to the arguments list
    7279    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image", argv[1]);
     80
     81
    7382
    7483    return config;
     
    8998    // }
    9099
    91     // XXX ADD this in?
    92     // if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {
    93     //     psArgumentRemove(argnum, &argc, argv);
    94     //     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,
    95     //                      "Filename for configuration dump", argv[argnum]);
    96     //     psArgumentRemove(argnum, &argc, argv);
    97     // }
    98100
  • trunk/ppSmooth/src/ppSmoothLoop.c

    r25976 r26008  
    8888    psFree(view);
    8989
     90    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
     91    if (dump_file) {
     92      if (!pmConfigDump(config, dump_file)) {
     93        ESCAPE("Unable to dump configuration.");
     94      }
     95    }
     96
     97
    9098    return true;
    9199}
  • trunk/ppSmooth/src/ppSmoothReadout.c

    r25976 r26008  
    3535    float minGauss = 0.1;
    3636    float nSigma = 3.0;
    37     float sigma = psMetadataLookupF32 (&status, recipe, "SIGMA");
     37    float sigma;
     38    if (!(sigma = psMetadataLookupF32(&status,config->arguments,"SIGMA"))) {
     39      sigma = psMetadataLookupF32 (&status, recipe, "SIGMA");
     40    }
    3841
    3942    bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
Note: See TracChangeset for help on using the changeset viewer.