IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2010, 2:29:49 PM (16 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20100621/ippTools/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/ippTools/src/diffphottool.c

    r28412 r28439  
    371371    PXOPT_LOOKUP_STR(ver_ppstats, config->args, "-ver_ppstats", false, false);
    372372    PXOPT_LOOKUP_STR(ver_psphot, config->args, "-ver_psphot", false, false);
     373    PXOPT_LOOKUP_S64(magicked, config->args, "-magicked", false, false);
    373374
    374375    psString version = pxMergeCodeVersions(ver_pslib, ver_psmodules);
     
    377378
    378379    if (!diffPhotSkyfileInsert(config->dbh, diff_phot_id, skycell_id, path_base, dtime_script, hostname,
    379                                fault, quality, version)) {
     380                               fault, quality, version, magicked)) {
    380381        psError(psErrorCodeLast(), false, "database error");
    381382        return false;
  • branches/eam_branches/ipp-20100621/ippTools/src/diffphottoolConfig.c

    r28412 r28439  
    100100    psMetadataAddStr(doneArgs, PS_LIST_TAIL, "-ver_ppstats", 0, "define ppStats version", NULL);
    101101    psMetadataAddStr(doneArgs, PS_LIST_TAIL, "-ver_psphot", 0, "define psphot version", NULL);
     102    psMetadataAddS64(doneArgs, PS_LIST_TAIL, "-magicked", 0, "define magicked state", 0);
    102103
    103104    // -advance
  • branches/eam_branches/ipp-20100621/ippTools/src/dqstatstool.c

    r27304 r28439  
    8585
    8686  if (label) {
    87     PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "==");
     87    pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "LIKE"); // define using cam label
    8888  }
    8989  // use psDBGenerateWhereConditionSQL because the SQL ends in a WHERE
     
    654654        psError(PS_EXIT_CONFIG_ERROR, false, "Unable to find max value for %s",colname);
    655655        return(false);
    656       }     
     656      }
     657      psString filter = psMetadataLookupStr(&status,rule,"FILTER");
     658      if (!status) {
     659        status = true;
     660      }
     661      if (filter) {
     662        psString imfilter = psMetadataLookupStr(&status,tableRow,"FILTER");
     663        if (strcmp(filter,imfilter) != 0) {
     664          continue;
     665        }
     666      }
    657667      // Not happy with this being set to a F32. Can this ever be something else?
    658668      psF32 value      = psMetadataLookupF32(&status,tableRow,colname);
Note: See TracChangeset for help on using the changeset viewer.