Changeset 27517 for branches/eam_branches/20100225/ippTools/src/difftool.c
- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/difftool.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/ippTools/src/difftool.c
r27020 r27517 158 158 exposure, 159 159 false, 160 diff_mode,160 diff_mode, 161 161 note 162 162 ); … … 204 204 205 205 // pxUpdateRun gets parameters from config->args and updates 206 bool result = pxUpdateRun(config, where, &query, "diffRun", true);206 bool result = pxUpdateRun(config, where, &query, "diffRun", "diff_id", "diffSkyfile", true); 207 207 208 208 psFree(query); … … 210 210 211 211 return result; 212 213 #ifdef notdef214 // required options215 PXOPT_LOOKUP_S64(diff_id, config->args, "-diff_id", false, false);216 PXOPT_LOOKUP_STR(state, config->args, "-state", true, false);217 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false);218 219 // Copy of my hacky work around from stacktool.c220 if ((state)&&(diff_id)) {221 // set detRun.state to state222 return setdiffRunState(config, diff_id, state, false);223 }224 225 if ((state)&&(label)) {226 return setdiffRunStateByLabel(config, label, state);227 }228 229 psError(PS_ERR_UNKNOWN, false, "Required options not found.");230 231 return false;232 #endif233 212 } 234 213 … … 730 709 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawInput.dateobs", ">="); 731 710 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawInput.dateobs", "<="); 732 PXOPT_COPY_STR(config->args, where, "-filter", "rawInput.filter", " ==");711 PXOPT_COPY_STR(config->args, where, "-filter", "rawInput.filter", "LIKE"); 733 712 } else { 734 713 PXOPT_COPY_S64(config->args, where, "-exp_id", "rawTemplate.exp_id", "=="); … … 737 716 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawTemplate.dateobs", ">="); 738 717 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawTemplate.dateobs", "<="); 739 PXOPT_COPY_STR(config->args, where, "-filter", "rawTemplate.filter", " ==");718 PXOPT_COPY_STR(config->args, where, "-filter", "rawTemplate.filter", "LIKE"); 740 719 } 741 720 … … 1005 984 diff_mode = 4; 1006 985 } 1007 1008 986 987 1009 988 // default 1010 989 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 1025 1004 false, 1026 1005 0, // magicked 1027 diff_mode, // diff_mode1006 diff_mode, // diff_mode 1028 1007 note 1029 1008 ); … … 1165 1144 PXOPT_COPY_S64(config->args, expWhere, "-exp_id", "exp_id", "=="); 1166 1145 PXOPT_COPY_STR(config->args, expWhere, "-filter", "filter", "=="); 1146 PXOPT_COPY_STR(config->args, expWhere, "-comment", "comment", "LIKE"); 1167 1147 PXOPT_COPY_S64(config->args, warp1Where, "-warp_id", "warpRun.warp_id", "=="); 1168 1148 PXOPT_COPY_STR(config->args, warp1Where, "-warp_label", "warpRun.label", "=="); … … 1436 1416 true, // exposure 1437 1417 0, // magicked 1438 2, // diff_mode for warp-stack difference1418 2, // diff_mode for warp-stack difference 1439 1419 note 1440 1420 ); … … 1584 1564 // Additional controls 1585 1565 PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false); 1586 PXOPT_LOOKUP_BOOL(available, config->args, "-available", false);1587 1566 1588 1567 // Settings to apply to defined run … … 1677 1656 if (psListLength(selectWhere->list)) { 1678 1657 psString new = psDBGenerateWhereConditionSQL(selectWhere, NULL); 1679 psStringAppend(&whereClause, "\n %s %s", whereClause ? "AND" : "WHERE", new);1658 psStringAppend(&whereClause, "\nAND %s", new); 1680 1659 psFree(new); 1681 1660 } 1682 1661 psFree(selectWhere); 1683 1662 1684 if (!available) {1685 psStringAppend(&whereClause,1686 "\n%s inputWarpRun.state = 'full'"1687 "AND templateWarpRun.state = 'full'",1688 whereClause ? "AND" : "WHERE");1689 }1690 1691 1663 if (!rerun) { 1692 psStringAppend(&whereClause, "\n %s diffs.diff_id IS NULL", whereClause ? "AND" : "WHERE");1664 psStringAppend(&whereClause, "\nAND diffs.diff_id IS NULL"); 1693 1665 } 1694 1666 … … 1779 1751 1780 1752 diffRunRow *run = diffRunRowAlloc(0, 1781 "reg",1782 workdir,1783 label,1784 data_group ? data_group : label,1785 dist_group,1786 reduction,1787 NULL, // dvodb1788 registered,1753 "reg", 1754 workdir, 1755 label, 1756 data_group ? data_group : label, 1757 dist_group, 1758 reduction, 1759 NULL, // dvodb 1760 registered, 1789 1761 tess_id, 1790 true, // bothways1791 true, // exposure1792 false, // magicked1793 1, // diff_mode for warp-warp diff1794 note); // Run to insert1762 true, // bothways 1763 true, // exposure 1764 false, // magicked 1765 1, // diff_mode for warp-warp diff 1766 note); // Run to insert 1795 1767 if (!diffRunInsertObject(config->dbh, run)) { 1796 1768 psError(PS_ERR_UNKNOWN, false, "database error"); … … 2073 2045 false, // exposure 2074 2046 0, // magicked 2075 4, // diff_mode2047 4, // diff_mode 2076 2048 note 2077 2049 );
Note:
See TracChangeset
for help on using the changeset viewer.
