Changeset 18029 for trunk/ippTools/src/warptool.c
- Timestamp:
- Jun 9, 2008, 12:55:57 PM (18 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
warptool.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src
- Property svn:ignore
-
old new 23 23 difftool 24 24 stacktool 25 faketool 25 26 dettool 26 27 detselect
-
- Property svn:ignore
-
trunk/ippTools/src/warptool.c
r17917 r18029 111 111 112 112 // required options 113 PXOPT_LOOKUP_STR( cam_id, config->args, "-cam_id", true, false);113 PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", true, false); 114 114 PXOPT_LOOKUP_STR(mode, config->args, "-mode", true, false); 115 115 // check mode … … 133 133 warpRunRow *warpRun = warpRunRowAlloc( 134 134 0, // ID 135 (psS64)atoll( cam_id),135 (psS64)atoll(fake_id), 136 136 mode, 137 137 "run", // state … … 176 176 177 177 PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false); 178 PXOPT_LOOKUP_STR( cam_id, config->args, "-cam_id", false, false);178 PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false); 179 179 PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false); 180 180 PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false); … … 190 190 } 191 191 192 // convert cam_id into a psS64193 if ( cam_id) {194 if (!psMetadataAddS64(where, PS_LIST_TAIL, " cam_id", 0, "==", (psS64)atoll(cam_id))) {195 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");192 // convert fake_id into a psS64 193 if (fake_id) { 194 if (!psMetadataAddS64(where, PS_LIST_TAIL, "fake_id", 0, "==", (psS64)atoll(fake_id))) { 195 psError(PS_ERR_UNKNOWN, false, "failed to add item fake_id"); 196 196 psFree(where); 197 197 return false; … … 543 543 } 544 544 } else { 545 warpSkyCellMapInsert(config->dbh, (psS64)atoll(warp_id), NULL, NULL, 0, NULL, code); 545 warpSkyCellMapInsert(config->dbh, 546 (psS64)atoll(warp_id), 547 NULL, // skycell_id 548 NULL, // tess_id 549 NULL, // class_id 550 code // fault 551 ); 546 552 } 547 553 … … 1028 1034 1029 1035 PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false); 1030 PXOPT_LOOKUP_STR( cam_id, config->args, "-cam_id", false, false);1036 PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false); 1031 1037 PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false); 1032 1038 PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false); … … 1045 1051 PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "=="); 1046 1052 1047 // convert cam_id into a psS641048 if ( cam_id) {1049 if (!psMetadataAddS64(where, PS_LIST_TAIL, " camRun.cam_id", 0, "==", (psS64)atoll(cam_id))) {1050 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");1053 // convert fake_id into a psS64 1054 if (fake_id) { 1055 if (!psMetadataAddS64(where, PS_LIST_TAIL, "fakeRun.fake_id", 0, "==", (psS64)atoll(fake_id))) { 1056 psError(PS_ERR_UNKNOWN, false, "failed to add item fake_id"); 1051 1057 psFree(where); 1052 1058 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
