IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35193


Ignore:
Timestamp:
Feb 21, 2013, 1:38:59 PM (13 years ago)
Author:
bills
Message:

Change default for queuing distRuns to be -no_magic

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r34235 r35193  
    143143    // optional
    144144    PXOPT_LOOKUP_BOOL(use_alternate, config->args, "-use_alternate", false);
    145     PXOPT_LOOKUP_BOOL(no_magic, config->args, "-no_magic", false);
     145    PXOPT_LOOKUP_BOOL(magic, config->args, "-magic", false);
    146146    PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false);
    147147    PXOPT_LOOKUP_STR(set_data_group, config->args, "-set_data_group", false, false);
     
    175175            return false;
    176176        }
    177         if (no_magic) {
     177        if (!magic) {
    178178            psError(PXTOOLS_ERR_SYS, true, "no_magic forbidden with alternate inputs");
    179179            return false;
     
    187187    // an interest)
    188188    // and exp_id to be supplied. We could add -exp_type and dateobs cuts to make it easier
    189     if (!strcmp(stage, "raw") && no_magic && !(exp_id && dist_group && exp_type)) {
     189    if (!strcmp(stage, "raw") && !magic && !(exp_id && dist_group && exp_type)) {
    190190        psError(PXTOOLS_ERR_SYS, true, "exp_id, exp_type, and dist_group are required for raw stage if no_magic");
    191191        return false;
     
    204204            runJoinStr = "camRun.exp_id";
    205205        }
    206         if (!no_magic) {
     206        if (magic) {
    207207            query = pxDataGet("disttool_definebyquery_raw.sql");
    208208        } else {
     
    215215        }
    216216
    217         if (!no_magic) {
     217        if (magic) {
    218218            if (label) {
    219219                psStringAppend(&query, " AND (magicDSRun.label = '%s')", label);
     
    289289        }
    290290        // fake stage doesn't require magic
    291         no_magic = true;
     291        magic = false;
    292292    } else if (!strcmp(stage, "warp")) {
    293293        magicRunType = "warpRun";
     
    357357        }
    358358        // stack stage doesn't require magic
    359         no_magic = true;
     359        magic = false;
    360360    } else if (!strcmp(stage, "sky")) {
    361361        magicRunType = "staticskyRun";
     
    378378        }
    379379        // (static)sky stage doesn't require magic
    380         no_magic = true;
     380        magic = false;
    381381    } else if (!strcmp(stage, "SSdiff")) {
    382382      magicRunType = "diffRun";
     
    396396      }
    397397
    398       no_magic = true;
     398      magic = false;
    399399    } else {
    400400        psError(PS_ERR_UNKNOWN, true, "unknown value for stage: %s", stage);
     
    408408
    409409    if (!strcmp(stage, "raw")) {
    410         if (!no_magic) {
     410        if (magic) {
    411411            psStringAppend(&query, " AND (magicDSRun.re_place = %d)", !use_alternate);
    412412            psStringAppend(&query, " AND (camRun.state = 'full')");
     
    426426    psString joinHook = NULL;
    427427
    428     if (!no_magic) {
     428    if (magic) {
    429429        psStringAppend(&query, " AND (%s.magicked > 0)", magicRunType);
    430430    }
     
    517517                NULL,     // outdir
    518518                clean,
    519                 no_magic,
     519                !magic,
    520520                use_alternate,
    521521                "new",
  • trunk/ippTools/src/disttoolConfig.c

    r33042 r35193  
    4848    psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-workdir",   0, "define workdir (required)", NULL);
    4949
    50     psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-no_magic", 0, "magic is not needed", false);
     50    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-no_magic", 0, "magic is not needed (ignored)", false);
     51    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-magic", 0, "magic is needed", false);
    5152    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-use_alternate", 0, "use alternate inputs", false);
    5253    psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_label",    0, "define label for run", NULL);
Note: See TracChangeset for help on using the changeset viewer.