- Timestamp:
- Aug 8, 2008, 5:08:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/dettool_residexp.c
r18643 r18991 88 88 // limit search by det_id, iteration, exp_id 89 89 psMetadata *where = psMetadataAlloc(); 90 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");90 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 91 91 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 92 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");93 94 PXOPT_LOOKUP_S TR(det_id, config->args, "-det_id", true, false); // required92 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 93 94 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required 95 95 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false); 96 PXOPT_LOOKUP_S TR(exp_id, config->args, "-exp_id", true, false); // required96 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required 97 97 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); 98 98 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false); // Required if code == 0 … … 150 150 psFree(output); 151 151 152 if (!detResidExpInsert(config->dbh, 153 (psS64)atoll(det_id), 152 if (!detResidExpInsert( 153 config->dbh, 154 det_id, 154 155 iteration, 155 (psS64)atoll(exp_id),156 exp_id, 156 157 recipe, 157 158 bg, … … 173 174 user_5, 174 175 path_base, 176 "full", 175 177 !reject, 176 178 code … … 188 190 189 191 psMetadata *where = psMetadataAlloc(); 190 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");192 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 191 193 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 192 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");194 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 193 195 PXOPT_COPY_STR(config->args, where, "-recip", "recipe", "=="); 194 196 … … 268 270 269 271 psMetadata *where = psMetadataAlloc(); 270 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");272 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 271 273 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 272 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");274 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 273 275 PXOPT_COPY_S16(config->args, where, "-code", "fault", "=="); 274 276 … … 310 312 // build a query to search by det_id, iteration, exp_id 311 313 psMetadata *where = psMetadataAlloc(); 312 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");314 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 313 315 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 314 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");316 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 315 317 316 318 // find the values we're going to set … … 323 325 PXOPT_COPY_F64(config->args, set, "-bg_mean_stdev", "bg_mean_stdev", "=="); 324 326 PXOPT_COPY_STR(config->args, set, "-path_base", "path_base", "=="); 327 PXOPT_COPY_STR(config->args, set, "-data_state", "data_state", "=="); 328 329 // double-check the allowed data_state values 330 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", false, false); 331 if (data_state) { 332 if (!isValidDataState (data_state)) return false; 333 } 325 334 326 335 // this can't be PXOPT_ macro-ized as reject is !'d … … 348 357 PS_ASSERT_PTR_NON_NULL(config, NULL); 349 358 350 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false);351 359 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 352 360 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 353 361 354 362 psMetadata *where = psMetadataAlloc(); 355 if (chip_id) { 356 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 357 } 358 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 363 PXOPT_COPY_S64(config->args, where, "-det_id", "detProcessedImfile.det_id", "=="); 359 364 360 365 psString query = pxDataGet("dettool_pendingcleanup_residexp.sql"); … … 397 402 398 403 // negative simple so the default is true 399 if (!ippdbPrintMetadatas(stdout, output, "det PendingCleanup_residexp", !simple)) {404 if (!ippdbPrintMetadatas(stdout, output, "detCleanupResidExp", !simple)) { 400 405 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 401 406 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
