Changeset 25027 for branches/pap/ippTools/src/faketool.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/faketool.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippTools/src
- Property svn:ignore
-
old new 34 34 disttool 35 35 receivetool 36 37 pubtool
-
- Property svn:ignore
-
branches/pap/ippTools/src/faketool.c
r23921 r25027 134 134 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 135 135 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 136 PXOPT_COPY_ F64(config->args, where, "-ra_min", "ra", ">=");137 PXOPT_COPY_ F64(config->args, where, "-ra_max", "ra", "<");138 PXOPT_COPY_ F64(config->args, where, "-decl_min", "decl", ">=");139 PXOPT_COPY_ F64(config->args, where, "-decl_max", "decl", "<");136 PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">="); 137 PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<"); 138 PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">="); 139 PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<"); 140 140 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 141 141 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); … … 157 157 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 158 158 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 159 PXOPT_COPY_F32(config->args, where, "-s olang_min", "solang", ">=");160 PXOPT_COPY_F32(config->args, where, "-s olang_max", "solang", "<");159 PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">="); 160 PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<"); 161 161 PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE"); 162 162 … … 235 235 bool status; 236 236 char *end_stage = psMetadataLookupStr(&status, md, "end_stage"); 237 if (end_stage && strcasecmp(end_stage, "warp")) continue;237 if (end_stage && strcasecmp(end_stage, "warp")) continue; 238 238 239 239 char *raw_tess_id = psMetadataLookupStr(&status, md, "tess_id"); 240 if (raw_tess_id || tess_id) continue;240 if (raw_tess_id || tess_id) continue; 241 241 242 242 char *label = psMetadataLookupStr(&status, md, "label"); … … 244 244 245 245 if (!status) { 246 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id);246 psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id); 247 247 psFree(output); 248 248 return false; … … 302 302 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 303 303 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 304 PXOPT_COPY_ F64(config->args, where, "-ra_min", "ra", ">=");305 PXOPT_COPY_ F64(config->args, where, "-ra_max", "ra", "<");306 PXOPT_COPY_ F64(config->args, where, "-decl_min", "decl", ">=");307 PXOPT_COPY_ F64(config->args, where, "-decl_max", "decl", "<");304 PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">="); 305 PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<"); 306 PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">="); 307 PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<"); 308 308 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 309 309 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); … … 325 325 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 326 326 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 327 PXOPT_COPY_F32(config->args, where, "-s olang_min", "solang", ">=");328 PXOPT_COPY_F32(config->args, where, "-s olang_max", "solang", "<");327 PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">="); 328 PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<"); 329 329 PXOPT_COPY_STR(config->args, where, "-label", "fakeRun.label", "=="); 330 330 … … 455 455 456 456 if (where && psListLength(where->list)) { 457 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);458 psStringAppend(&query, " WHERE%s", whereClause);457 psString whereClause = psDBGenerateWhereConditionSQL(where, "fakeRun"); 458 psStringAppend(&query, " AND %s", whereClause); 459 459 psFree(whereClause); 460 460 } … … 563 563 564 564 psMetadata *where = psMetadataAlloc(); 565 PXOPT_COPY_S64(config->args, where, "-fake_id", "fake Run.fake_id", "==");565 PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "=="); 566 566 PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "=="); 567 567 PXOPT_COPY_STR(config->args, where, "-class_id", "rawImfile.class_id", "=="); … … 632 632 633 633 psMetadata *where = psMetadataAlloc(); 634 pxAddLabelSearchArgs (config, where, "-label", "fakeRun.label", "=="); 634 635 PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "=="); 635 PXOPT_COPY_STR(config->args, where, "-label", "fakeRun.label", "==");636 636 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 637 637 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); … … 646 646 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 647 647 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 648 PXOPT_COPY_ F64(config->args, where, "-ra_min", "ra", ">=");649 PXOPT_COPY_ F64(config->args, where, "-ra_max", "ra", "<");650 PXOPT_COPY_ F64(config->args, where, "-decl_min", "decl", ">=");651 PXOPT_COPY_ F64(config->args, where, "-decl_max", "decl", "<");648 PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">="); 649 PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<"); 650 PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">="); 651 PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<"); 652 652 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 653 653 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); … … 669 669 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 670 670 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 671 PXOPT_COPY_F32(config->args, where, "-s olang_min", "solang", ">=");672 PXOPT_COPY_F32(config->args, where, "-s olang_max", "solang", "<");671 PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">="); 672 PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<"); 673 673 674 674 if (!psListLength(where->list) … … 895 895 896 896 psMetadata *where = psMetadataAlloc(); 897 pxAddLabelSearchArgs (config, where, "-label", " label", "==");897 pxAddLabelSearchArgs (config, where, "-label", "fakeRun.label", "=="); 898 898 899 899 psString query = pxDataGet("faketool_pendingcleanuprun.sql"); … … 1157 1157 // pxwarpQueueByFakeID() can only be run after fakeRun.state has been set to stop 1158 1158 if (!pxwarpQueueByFakeID(config, 1159 fakeRun->fake_id, 1160 fakeRun->workdir, 1161 fakeRun->label, 1162 fakeRun->dvodb, 1163 fakeRun->tess_id, 1164 fakeRun->end_stage 1159 fakeRun->fake_id, 1160 fakeRun->workdir, 1161 fakeRun->label, 1162 fakeRun->dvodb, 1163 fakeRun->tess_id, 1164 fakeRun->reduction, 1165 fakeRun->end_stage 1165 1166 )) { 1166 1167 psError(PS_ERR_UNKNOWN, false, "failed to queue warpRun");
Note:
See TracChangeset
for help on using the changeset viewer.
