IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/warptool.c

    r23613 r23688  
    609609    PXOPT_LOOKUP_STR(mapfile, config->args, "-mapfile", false, false);
    610610    PXOPT_LOOKUP_S64(warp_id, config->args, "-warp_id", false, false);
    611     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     611    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    612612
    613613    if (!psDBTransaction(config->dbh)) {
     
    616616    }
    617617
    618     if (code == 0) {
     618    if (fault == 0) {
    619619        if (!parseAndInsertSkyCellMap(config, mapfile)) {
    620620            psError(PS_ERR_UNKNOWN, false, "failed to inject mapfile: %s into the database", mapfile);
     
    631631            NULL,   // tess_id
    632632            NULL,   // class_id
    633             code    // fault
     633            fault    // fault
    634634        );
    635635    }
     
    896896    PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false);
    897897    PXOPT_LOOKUP_F32(good_frac, config->args, "-good_frac", false, false);
    898     PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false);
    899898    PXOPT_LOOKUP_BOOL(magicked, config->args, "-magicked", false);
    900899
    901900    // default values
    902     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     901    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     902    PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false);
    903903
    904904    // we don't want to insert the last skyfile in a run but then not mark the
     
    927927                           ymin,
    928928                           ymax,
    929                            !accept,
    930                            code,
     929                           fault,
     930                           quality,
    931931                           magicked
    932932        )) {
     
    11121112    PXOPT_COPY_STR(config->args, where, "-reduction",  "rawExp.reduction", "==");
    11131113    PXOPT_COPY_STR(config->args, where, "-label",      "warpRun.label", "==");
    1114     PXOPT_COPY_S16(config->args, where, "-code",       "warpSkyfile.fault", "==");
     1114    PXOPT_COPY_S16(config->args, where, "-fault",       "warpSkyfile.fault", "==");
    11151115
    11161116    if (!psListLength(where->list)
     
    15601560    PS_ASSERT_PTR_NON_NULL(config, false);
    15611561
    1562     // warp_id, skycell_id, code are required
     1562    // warp_id, skycell_id, fault are required
    15631563    PXOPT_LOOKUP_S64(warp_id, config->args, "-warp_id", true, false);
    15641564    PXOPT_LOOKUP_STR(skycell_id, config->args, "-skycell_id", true, false);
    1565     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     1565    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    15661566
    15671567    psString query = pxDataGet("warptool_updateskyfile.sql");
    15681568
    1569     if (!p_psDBRunQueryF(config->dbh, query, code, warp_id, skycell_id)) {
     1569    if (!p_psDBRunQueryF(config->dbh, query, fault, warp_id, skycell_id)) {
    15701570        psError(PS_ERR_UNKNOWN, false, "database error");
    15711571        return false;
Note: See TracChangeset for help on using the changeset viewer.