IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 3:16:08 PM (19 years ago)
Author:
jhoblitt
Message:

rename exp_id -> exp_name
rename exp_tag -> exp_id
add add rawExp.exp_tag for use as an external name only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r14018 r14023  
    132132
    133133    psMetadata *where = psMetadataAlloc();
    134     ADDPARAMSTR(config->args, where, "exp_tag");
    135134    ADDPARAMSTR(config->args, where, "exp_id");
     135    ADDPARAMSTR(config->args, where, "exp_name");
    136136    ADDRENAMEPARAMSTR(config->args, where, "inst", "camera");
    137137    ADDPARAMSTR(config->args, where, "telescope");
     
    190190    }
    191191
    192     // find the exp_tag of all the exposures that we want to queue up.
     192    // find the exp_id of all the exposures that we want to queue up.
    193193    psString query = pxDataGet("chiptool_find_rawexp.sql");
    194194    if (!query) {
     
    230230    }
    231231
    232     // loop over our list of exp_tags
     232    // loop over our list of exp_ids
    233233    for (long i = 0; i < psArrayLength(output); i++) {
    234234        psMetadata *md = output->data[i];
    235235
    236         psString exp_tag = psMetadataLookupStr(&status, md, "exp_tag");
     236        psString exp_id = psMetadataLookupStr(&status, md, "exp_id");
    237237        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");
    239239            psFree(output);
    240240            return false;
     
    242242
    243243        // 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)) {
    245245            if (!psDBRollback(config->dbh)) {
    246246                psError(PS_ERR_UNKNOWN, false, "database error");
    247247            }
    248248            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);
    250250            psFree(output);
    251251            return false;
     
    357357    }
    358358
    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_tag is 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");
    366366        return false;
    367367    }
     
    511511
    512512    chipProcessedImfileRow *imfile = chipProcessedImfileRowAlloc(
    513         (psU64)atoll(chip_id),
    514         exp_tag,
     513        (psS64)atoll(chip_id),
     514        (psS64)atoll(exp_id),
    515515        class_id,
    516516        uri,
Note: See TracChangeset for help on using the changeset viewer.