IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 4:26:01 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppSub/src/ppSubCamera.c

    r26803 r26880  
    3535    *success = false;
    3636
    37     // look for the file on the RUN metadata
    38     pmFPAfile *file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
     37    pmFPAfile *file = NULL;
     38
     39    // look for the file on the argument list
     40    if (bind) {
     41        file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
     42    } else {
     43        file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
     44    }
     45
    3946    if (!status) {
    4047        psError(PS_ERR_UNKNOWN, false, "Failed to load file definition for %s", filerule);
    41         return NULL;
     48        return false;
    4249    }
    4350    if (!file) {
    44         // look for the file on the argument list
    45         if (bind) {
    46             file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
    47         } else {
    48             file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
    49         }
     51        // look for the file on the RUN metadata
     52        file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
    5053        if (!status) {
    5154            psError(PS_ERR_UNKNOWN, false, "Failed to load file definition for %s", filerule);
     
    345348
    346349    // Output subtraction kernel
    347     pmFPAfile *kernel = defineCalcFile(config, output, "PPSUB.OUTPUT.KERNELS", PM_FPA_FILE_SUBKERNEL);
     350    pmFPAfile *kernel = defineCalcFile(config, NULL, "PPSUB.OUTPUT.KERNELS", PM_FPA_FILE_SUBKERNEL);
    348351    if (!kernel) {
    349352        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to define file PPSUB.OUTPUT.KERNELS");
Note: See TracChangeset for help on using the changeset viewer.