Changeset 14023 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Jul 5, 2007, 3:16:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r14018 r14023 132 132 133 133 psMetadata *where = psMetadataAlloc(); 134 ADDPARAMSTR(config->args, where, "exp_tag");135 134 ADDPARAMSTR(config->args, where, "exp_id"); 135 ADDPARAMSTR(config->args, where, "exp_name"); 136 136 ADDRENAMEPARAMSTR(config->args, where, "inst", "camera"); 137 137 ADDPARAMSTR(config->args, where, "telescope"); … … 190 190 } 191 191 192 // find the exp_ tagof all the exposures that we want to queue up.192 // find the exp_id of all the exposures that we want to queue up. 193 193 psString query = pxDataGet("chiptool_find_rawexp.sql"); 194 194 if (!query) { … … 230 230 } 231 231 232 // loop over our list of exp_ tags232 // loop over our list of exp_ids 233 233 for (long i = 0; i < psArrayLength(output); i++) { 234 234 psMetadata *md = output->data[i]; 235 235 236 psString exp_ tag = psMetadataLookupStr(&status, md, "exp_tag");236 psString exp_id = psMetadataLookupStr(&status, md, "exp_id"); 237 237 if (!status) { 238 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for exp_ tag");238 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for exp_id"); 239 239 psFree(output); 240 240 return false; … … 242 242 243 243 // queue the exp 244 if (!pxchipQueueByExpTag(config, exp_ tag, workdir, label, reduction, expgroup, dvodb)) {244 if (!pxchipQueueByExpTag(config, exp_id, workdir, label, reduction, expgroup, dvodb)) { 245 245 if (!psDBRollback(config->dbh)) { 246 246 psError(PS_ERR_UNKNOWN, false, "database error"); 247 247 } 248 248 psError(PS_ERR_UNKNOWN, false, 249 "failed to trying to queue exp_ tag: %s", exp_tag);249 "failed to trying to queue exp_id: %s", exp_id); 250 250 psFree(output); 251 251 return false; … … 357 357 } 358 358 359 psString exp_ tag = psMetadataLookupStr(&status, config->args, "-exp_tag");360 if (!status) { 361 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_ tag");362 return false; 363 } 364 if (!exp_ tag) {365 psError(PS_ERR_UNKNOWN, true, "-exp_ tagis required");359 psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id"); 360 if (!status) { 361 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_id"); 362 return false; 363 } 364 if (!exp_id) { 365 psError(PS_ERR_UNKNOWN, true, "-exp_id is required"); 366 366 return false; 367 367 } … … 511 511 512 512 chipProcessedImfileRow *imfile = chipProcessedImfileRowAlloc( 513 (ps U64)atoll(chip_id),514 exp_tag,513 (psS64)atoll(chip_id), 514 (psS64)atoll(exp_id), 515 515 class_id, 516 516 uri,
Note:
See TracChangeset
for help on using the changeset viewer.
