Changeset 23532 for branches/pap/ippTools/src/camtool.c
- Timestamp:
- Mar 25, 2009, 12:48:19 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ippTools/src/camtool.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippTools/src/camtool.c
r23310 r23532 465 465 466 466 PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false); 467 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); 467 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 468 PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false); 468 469 469 470 // generate restrictions … … 530 531 zpt_lq, 531 532 zpt_uq, 532 fwhm_major,533 fwhm_major_lq,534 fwhm_major_uq,535 fwhm_minor,536 fwhm_minor_lq,537 fwhm_minor_uq,538 539 iq_fwhm_major,540 iq_fwhm_major_err,541 iq_fwhm_minor,542 iq_fwhm_minor_err,533 fwhm_major, 534 fwhm_major_lq, 535 fwhm_major_uq, 536 fwhm_minor, 537 fwhm_minor_lq, 538 fwhm_minor_uq, 539 540 iq_fwhm_major, 541 iq_fwhm_major_err, 542 iq_fwhm_minor, 543 iq_fwhm_minor_err, 543 544 544 545 iq_m2, … … 573 574 n_astrom, 574 575 path_base, 575 code 576 fault, 577 quality 576 578 ); 577 579 … … 596 598 597 599 // NULL for end_stage means go as far as possible 598 // EAM : skip here if code!= 0600 // EAM : skip here if fault != 0 599 601 // Also, we can run fake even if tess_id is not defined 600 if ( code|| (pendingRow->end_stage && psStrcasestr(pendingRow->end_stage, "cam"))) {602 if (fault || (pendingRow->end_stage && psStrcasestr(pendingRow->end_stage, "cam"))) { 601 603 psFree(row); 602 604 psFree(pendingRow); … … 723 725 pxcamGetSearchArgs (config, where); 724 726 PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "=="); 725 PXOPT_COPY_S16(config->args, where, "-code", "camProcessedExp.fault", "=="); 727 PXOPT_COPY_S16(config->args, where, "-fault", "camProcessedExp.fault", "=="); 728 PXOPT_COPY_S16(config->args, where, "-quality", "camProcessedExp.quality", "=="); 726 729 727 730 if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) { … … 811 814 PS_ASSERT_PTR_NON_NULL(config, false); 812 815 813 PXOPT_LOOKUP_S16( code, config->args, "-code", true, false);816 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 814 817 815 818 psMetadata *where = psMetadataAlloc(); … … 819 822 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 820 823 821 if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, code)) {824 if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, fault)) { 822 825 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 823 826 psFree (where); … … 1092 1095 char sqlFilename[80]; 1093 1096 } ExportTable; 1094 1097 1095 1098 int numExportTables = 2; 1096 1099 … … 1172 1175 1173 1176 PS_ASSERT_PTR_NON_NULL(config, NULL); 1174 1177 1175 1178 PXOPT_LOOKUP_STR(infile, config->args, "-infile", true, false); 1176 1179 … … 1183 1186 psAssert (item, "entry not in input?"); 1184 1187 psAssert (item->type == PS_DATA_METADATA_MULTI, "entry not multi?"); 1185 1188 1186 1189 psMetadataItem *entry = psListGet (item->data.list, 0); 1187 1190 assert (entry); … … 1192 1195 // fprintf (stdout, "---- cam run ----\n"); 1193 1196 // psMetadataPrint (stderr, entry->data.md, 1); 1194 1197 1195 1198 item = psMetadataLookup (input, "camProcessedImfile"); 1196 1199 psAssert (item, "entry not in input?");
Note:
See TracChangeset
for help on using the changeset viewer.
