IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20684


Ignore:
Timestamp:
Nov 10, 2008, 8:27:16 PM (17 years ago)
Author:
Paul Price
Message:

Fixing table names, and executed query parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/difftool.c

    r20683 r20684  
    939939    psMetadata *stackWhere = psMetadataAlloc();
    940940
    941     PXOPT_COPY_S64(config->args, warpWhere, "-warp_id", "warpsToDiff.warp_id", "==");
    942     PXOPT_COPY_STR(config->args, warpWhere, "-skycell_id", "warpsToDiff.skycell_id", "==");
    943     PXOPT_COPY_STR(config->args, warpWhere, "-tess_id", "warpsToDiff.tess_id", "==");
    944     PXOPT_COPY_STR(config->args, warpWhere, "-filter", "warpsToDiff.filter", "==");
    945     PXOPT_COPY_STR(config->args, warpWhere, "-warp_label", "warpsToDiff.warp_label", "==");
     941    PXOPT_COPY_S64(config->args, warpWhere, "-warp_id", "warpRun.warp_id", "==");
     942    PXOPT_COPY_STR(config->args, warpWhere, "-skycell_id", "warpRun.skycell_id", "==");
     943    PXOPT_COPY_STR(config->args, warpWhere, "-tess_id", "warpRun.tess_id", "==");
     944    PXOPT_COPY_STR(config->args, warpWhere, "-filter", "rawExp.filter", "==");
     945    PXOPT_COPY_STR(config->args, warpWhere, "-warp_label", "warpRun.label", "==");
    946946    PXOPT_COPY_STR(config->args, warpWhere,  "-kind", "warpsToDiff.kind", "==");
    947     PXOPT_COPY_F32(config->args, warpWhere,  "-good_frac", "warpsToDiff.good_frac", ">=");
    948     PXOPT_COPY_STR(config->args, stackWhere, "-stack_label", "stacksForDiff.stack_label", "==");
     947    PXOPT_COPY_F32(config->args, warpWhere,  "-good_frac", "warpSkyfile.good_frac", ">=");
     948    PXOPT_COPY_STR(config->args, stackWhere, "-stack_label", "stackRun.label", "==");
    949949
    950950    PXOPT_LOOKUP_STR(workdir, config->args, "-workdir", true, false); // required options
     
    991991    psFree(stackWhere);
    992992
    993     if (!p_psDBRunQuery(config->dbh, query, warpWhere, stackWhere)) {
     993    psTrace("difftool", 1, query, warpQuery, stackQuery);
     994
     995    if (!p_psDBRunQuery(config->dbh, query, warpQuery, stackQuery)) {
    994996        psError(PS_ERR_UNKNOWN, false, "database error");
    995997        psFree(query);
     
    10461048        }
    10471049
    1048         if (!populatedrun(list, workdir, skycell_id, tess_id, label, reduction, warp_id, PS_MAX_S64, PS_MAX_S64,
    1049                           stack_id, config)) {
     1050        if (!populatedrun(list, workdir, skycell_id, tess_id, label, reduction, warp_id,
     1051                          PS_MAX_S64, PS_MAX_S64, stack_id, config)) {
    10501052            psWarning("Unable to add run for %s,%s,%" PRId64 ",%" PRId64, skycell_id, tess_id,
    10511053                      warp_id, stack_id);
Note: See TracChangeset for help on using the changeset viewer.