Changeset 18076 for branches/cleanup/ippTools/src/warptool.c
- Timestamp:
- Jun 10, 2008, 4:02:14 PM (18 years ago)
- Location:
- branches/cleanup/ippTools/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
warptool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/ippTools/src
- Property svn:ignore
-
old new 23 23 difftool 24 24 stacktool 25 faketool 25 26 dettool 26 27 detselect
-
- Property svn:ignore
-
branches/cleanup/ippTools/src/warptool.c
r17791 r18076 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; … … 526 526 PXOPT_LOOKUP_STR(mapfile, config->args, "-mapfile", false, false); 527 527 PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false); 528 PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false);529 528 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); 530 529 … … 544 543 } 545 544 } else { 546 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 ); 547 552 } 548 553 … … 1029 1034 1030 1035 PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false); 1031 PXOPT_LOOKUP_STR( cam_id, config->args, "-cam_id", false, false);1036 PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false); 1032 1037 PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false); 1033 1038 PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false); … … 1046 1051 PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "=="); 1047 1052 1048 // convert cam_id into a psS641049 if ( cam_id) {1050 if (!psMetadataAddS64(where, PS_LIST_TAIL, " camRun.cam_id", 0, "==", (psS64)atoll(cam_id))) {1051 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"); 1052 1057 psFree(where); 1053 1058 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
