Changeset 23688 for trunk/ippTools/src/warptool.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/warptool.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/warptool.c
r23613 r23688 609 609 PXOPT_LOOKUP_STR(mapfile, config->args, "-mapfile", false, false); 610 610 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); 612 612 613 613 if (!psDBTransaction(config->dbh)) { … … 616 616 } 617 617 618 if ( code== 0) {618 if (fault == 0) { 619 619 if (!parseAndInsertSkyCellMap(config, mapfile)) { 620 620 psError(PS_ERR_UNKNOWN, false, "failed to inject mapfile: %s into the database", mapfile); … … 631 631 NULL, // tess_id 632 632 NULL, // class_id 633 code// fault633 fault // fault 634 634 ); 635 635 } … … 896 896 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 897 897 PXOPT_LOOKUP_F32(good_frac, config->args, "-good_frac", false, false); 898 PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false);899 898 PXOPT_LOOKUP_BOOL(magicked, config->args, "-magicked", false); 900 899 901 900 // 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); 903 903 904 904 // we don't want to insert the last skyfile in a run but then not mark the … … 927 927 ymin, 928 928 ymax, 929 !accept,930 code,929 fault, 930 quality, 931 931 magicked 932 932 )) { … … 1112 1112 PXOPT_COPY_STR(config->args, where, "-reduction", "rawExp.reduction", "=="); 1113 1113 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", "=="); 1115 1115 1116 1116 if (!psListLength(where->list) … … 1560 1560 PS_ASSERT_PTR_NON_NULL(config, false); 1561 1561 1562 // warp_id, skycell_id, codeare required1562 // warp_id, skycell_id, fault are required 1563 1563 PXOPT_LOOKUP_S64(warp_id, config->args, "-warp_id", true, false); 1564 1564 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); 1566 1566 1567 1567 psString query = pxDataGet("warptool_updateskyfile.sql"); 1568 1568 1569 if (!p_psDBRunQueryF(config->dbh, query, code, warp_id, skycell_id)) {1569 if (!p_psDBRunQueryF(config->dbh, query, fault, warp_id, skycell_id)) { 1570 1570 psError(PS_ERR_UNKNOWN, false, "database error"); 1571 1571 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
