- Timestamp:
- Sep 6, 2011, 11:00:22 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110710/ippTools/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
warptool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 31917,31938,31954-31955,31957,31969,32197,32199,32218,32272,32283
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110710/ippTools/src/warptool.c
r31719 r32337 975 975 psFree(where); 976 976 977 psArray *allOutput = psArrayAllocEmpty(0); 977 978 // Now loop over the labels and query each individually 978 979 for (long i = 0; i < psArrayLength(labelOutput); i++) { … … 1023 1024 long outputLength = psArrayLength(output); 1024 1025 if (outputLength) { 1025 // negative simple so the default is true 1026 if (!ippdbPrintMetadatas(stdout, output, "warpPendingSkyCell", !simple)) { 1027 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 1028 psFree(output); 1029 return false; 1026 for (int i = 0; i< outputLength; i++) { 1027 psPtr ptr = output->data[i]; 1028 allOutput = psArrayAdd(allOutput, outputLength - i + 10, ptr); 1029 if (!allOutput) { 1030 psError(PS_ERR_UNKNOWN, false, "failed to add element to array"); 1031 return false; 1032 } 1030 1033 } 1031 1034 } else { … … 1044 1047 } 1045 1048 } 1049 long allLabelsLength = psArrayLength(allOutput); 1050 if (allLabelsLength) { 1051 if (!ippdbPrintMetadatas(stdout, allOutput, "warpPendingSkyCell", !simple)) { 1052 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 1053 psFree(allOutput); 1054 return false; 1055 } 1056 } 1057 psFree(allOutput); 1046 1058 psFree(labelOutput); 1047 1059 psFree(whereStr); … … 1382 1394 pxAddLabelSearchArgs (config, where, "-data_group", "warpRun.data_group", "LIKE"); 1383 1395 1396 PXOPT_LOOKUP_BOOL(pstamp_order, config->args, "-pstamp_order", false); 1384 1397 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 1385 1398 … … 1423 1436 } 1424 1437 psFree(where); 1438 1439 if (pstamp_order) { 1440 // put runs in order of exposure id with newest warp Runs first 1441 // The postage stamp parser depends on this behavior 1442 psStringAppend(&query, "\nORDER by exp_id, warp_id DESC"); 1443 } 1425 1444 1426 1445 // treat limit == 0 as "no limit" … … 2467 2486 2468 2487 if (pstamp_order) { 2469 // put runs in order of exposure id with newest chip Runs first2488 // put runs in order of exposure id with newest warp Runs first 2470 2489 // The postage stamp parser depends on this behavior 2471 2490 psStringAppend(&query, "\nORDER by exp_id, warp_id DESC"); 2472 2491 } 2473 2474 2492 2475 2493 // treat limit == 0 as "no limit"
Note:
See TracChangeset
for help on using the changeset viewer.
