Changeset 24487 for trunk/ippTools/src
- Timestamp:
- Jun 18, 2009, 10:55:36 AM (17 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 5 edited
-
faketool.c (modified) (3 diffs)
-
pxwarp.c (modified) (2 diffs)
-
pxwarp.h (modified) (1 diff)
-
warptool.c (modified) (4 diffs)
-
warptoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/faketool.c
r24414 r24487 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; … … 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"); -
trunk/ippTools/src/pxwarp.c
r23613 r24487 126 126 127 127 bool pxwarpQueueByFakeID(pxConfig *config, 128 psS64 fake_id, 129 char *workdir, 130 char *label, 131 char *dvodb, 132 char *tess_id, 133 char *end_stage) 128 psS64 fake_id, 129 const char *workdir, 130 const char *label, 131 const char *dvodb, 132 const char *tess_id, 133 const char *reduction, 134 const char *end_stage) 134 135 { 135 136 PS_ASSERT_PTR_NON_NULL(config, false); … … 146 147 dvodb, 147 148 tess_id, 149 reduction, 148 150 end_stage, 149 151 NULL, // registered -
trunk/ippTools/src/pxwarp.h
r23613 r24487 31 31 32 32 bool pxwarpQueueByFakeID(pxConfig *config, 33 psS64 fake_id, 34 char *workdir, 35 char *label, 36 char *dvodb, 37 char *tess_id, 38 char *end_stage); 33 psS64 fake_id, 34 const char *workdir, 35 const char *label, 36 const char *dvodb, 37 const char *tess_id, 38 const char *reduction, 39 const char *end_stage); 39 40 40 41 #endif // PXWARP_H -
trunk/ippTools/src/warptool.c
r24426 r24487 139 139 PXOPT_LOOKUP_STR(dvodb, config->args, "-dvodb", false, false); 140 140 PXOPT_LOOKUP_STR(tess_id, config->args, "-tess_id", true, false); // required (no default TESS) 141 PXOPT_LOOKUP_STR(reduction, config->args, "-reduction", false, false); // required (no default TESS) 141 142 PXOPT_LOOKUP_STR(end_stage, config->args, "-end_stage", false, false); 142 143 PXOPT_LOOKUP_TIME(registered, config->args, "-registered", false, false); … … 159 160 dvodb, 160 161 tess_id, 162 reduction, 161 163 end_stage, 162 164 registered, … … 249 251 PXOPT_LOOKUP_STR(dvodb, config->args, "-set_dvodb", false, false); 250 252 PXOPT_LOOKUP_STR(tess_id, config->args, "-set_tess_id", false, false); 253 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 251 254 PXOPT_LOOKUP_STR(end_stage, config->args, "-set_end_stage", false, false); 252 255 … … 332 335 // queue the exp 333 336 if (!pxwarpQueueByFakeID(config, 334 row->fake_id, 335 workdir ? workdir : row->workdir, 336 label ? label : row->label, 337 dvodb ? dvodb : row->dvodb, 338 tess_id ? tess_id : row->tess_id, 339 end_stage ? end_stage : row->end_stage)) 337 row->fake_id, 338 workdir ? workdir : row->workdir, 339 label ? label : row->label, 340 dvodb ? dvodb : row->dvodb, 341 tess_id ? tess_id : row->tess_id, 342 reduction ? reduction : row->reduction, 343 end_stage ? end_stage : row->end_stage)) 340 344 { 341 345 psError(PS_ERR_UNKNOWN, false, "failed to trying to queue fake_id: %" PRId64, row->fake_id); -
trunk/ippTools/src/warptoolConfig.c
r24426 r24487 98 98 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_dvodb", 0, "define DVO db", NULL); 99 99 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_tess_id", 0, "define tess ID", NULL); 100 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_reduction", 0, "define reduction class", NULL); 100 101 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_end_stage", 0, "define end stage", NULL); 101 102 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-all", 0, "allow everything to be queued without search terms", false); … … 111 112 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", 0, "define label", NULL); 112 113 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-dvodb", 0, "define dvodb", NULL); 113 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-tess_id", 0, "define tess_id", NULL); 114 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-tess_id", 0, "define tess_id (required)", NULL); 115 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-reduction", 0, "define reduction class", NULL); 114 116 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-end_stage", 0, "define end stage", NULL); 115 117 psMetadataAddTime(definerunArgs, PS_LIST_TAIL, "-registered", 0, "time detrend run was registered", now);
Note:
See TracChangeset
for help on using the changeset viewer.
