Changeset 26113 for trunk/ippTools/src/camtool.c
- Timestamp:
- Nov 12, 2009, 3:53:33 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r25935 r26113 184 184 bool status; 185 185 char *end_stage = psMetadataLookupStr(&status, md, "end_stage"); 186 if (end_stage && strcasecmp(end_stage, "warp")) continue;186 if (end_stage && strcasecmp(end_stage, "warp")) continue; 187 187 188 188 char *raw_tess_id = psMetadataLookupStr(&status, md, "tess_id"); 189 if (raw_tess_id || tess_id) continue;189 if (raw_tess_id || tess_id) continue; 190 190 191 191 char *label = psMetadataLookupStr(&status, md, "label"); … … 193 193 194 194 if (!status) { 195 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id);195 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id); 196 196 psFree(output); 197 197 return false; … … 479 479 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 480 480 PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false); 481 481 482 482 PXOPT_LOOKUP_S64(magicked, config->args, "-magicked", false, false); 483 483 … … 603 603 } 604 604 605 // since there is only one exp per 'new' set camRun.state = 'full'606 if (!pxcamRunSetState(config, row->cam_id, "full", magicked)) {607 psError(PS_ERR_UNKNOWN, false, "failed to change camRun.state for cam_id: %" PRId64, row->cam_id);608 psFree(row);609 psFree(pendingRow);610 return false;611 }612 613 605 // NULL for end_stage means go as far as possible 614 606 // EAM : skip here if fault != 0 … … 623 615 return true; 624 616 } 617 // else continue on... 618 619 // since there is only one exp per 'new' set camRun.state = 'full' 620 if (!pxcamRunSetState(config, row->cam_id, "full", magicked)) { 621 psError(PS_ERR_UNKNOWN, false, "failed to change camRun.state for cam_id: %" PRId64, row->cam_id); 622 psFree(row); 623 psFree(pendingRow); 624 return false; 625 } 625 626 psFree(row); 626 // else continue on...627 627 628 628 if (!pxfakeQueueByCamID(config, … … 691 691 psStringAppend(&query, " WHERE %s", whereClause); 692 692 psFree(whereClause); 693 } 693 } 694 694 695 695 // we either add AND (condition) or WHERE (condition): … … 697 697 // list only faulted rows 698 698 psStringAppend(&query, " %s", " AND camProcessedExp.fault != 0"); 699 } 699 } 700 700 if (where->list && !faulted) { 701 701 // don't list faulted rows … … 705 705 // list only faulted rows 706 706 psStringAppend(&query, " %s", " WHERE camProcessedExp.fault != 0"); 707 } 707 } 708 708 if (!where->list && !faulted) { 709 709 // don't list faulted rows
Note:
See TracChangeset
for help on using the changeset viewer.
