IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16083


Ignore:
Timestamp:
Jan 15, 2008, 11:41:05 AM (18 years ago)
Author:
jhoblitt
Message:

extend dvodb, tess_id, & end_stage input to the pxinject level

Location:
branches/end_stage
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/end_stage/dbconfig/tasks.md

    r15775 r16083  
    1 # $Id: tasks.md,v 1.143 2007-12-08 03:17:56 eugene Exp $
     1# $Id: tasks.md,v 1.143.2.1 2008-01-15 21:41:05 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    9595    workdir_state STR       64      # key
    9696    reduction   STR         64      # Reduction class
     97    dvodb       STR         255
     98    tess_id     STR         64
     99    end_stage   STR         64      # Key
    97100END
    98101
     
    117120    workdir     STR         255     # destination for output files
    118121    reduction   STR         64      # Reduction class
     122    dvodb       STR         255
     123    tess_id     STR         64
     124    end_stage   STR         64      # Key
    119125    filter      STR         64
    120126    comment     STR         80
  • branches/end_stage/ippTools/share/regtool_pendingexp.sql

    r15763 r16083  
    88    workdir,
    99    workdir_state,
    10     reduction
     10    reduction,
     11    dvodb,
     12    tess_id,
     13    end_stage
    1114FROM
    1215    (SELECT
  • branches/end_stage/ippTools/src/pxinject.c

    r14132 r16083  
    121121    if (!status) {
    122122        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -reduction");
     123        return false;
     124    }
     125
     126    psString dvodb = psMetadataLookupStr(&status, config->args, "-dvodb");
     127    if (!status) {
     128        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dvodb");
     129        return false;
     130    }
     131
     132    psString tess_id = psMetadataLookupStr(&status, config->args, "-tess_id");
     133    if (!status) {
     134        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -tess_id");
     135        return false;
     136    }
     137
     138    psString end_stage = psMetadataLookupStr(&status, config->args, "-end_stage");
     139    if (!status) {
     140        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -end_stage");
    123141        return false;
    124142    }
     
    132150                workdir,
    133151                "dirty",
    134                 reduction
     152                reduction,
     153                dvodb,
     154                tess_id,
     155                end_stage
    135156            )
    136157        ) {
  • branches/end_stage/ippTools/src/pxinjectConfig.c

    r14132 r16083  
    5555    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-reduction",  0,
    5656            "define reduction class", NULL);
     57    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dvodb",  0,
     58            "define the dvodb for the next processing step", NULL);
     59    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tess_id",  0,
     60            "define the tess_id for the next processing step", NULL);
     61    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-end_stage",  0,
     62            "define the end goal processing step", NULL);
    5763    psMetadataAddBool(newExpArgs, PS_LIST_TAIL, "-simple",  0,
    5864            "use the simple output format", false);
  • branches/end_stage/ippTools/src/pztool.c

    r15293 r16083  
    615615                    NULL,               // workdir
    616616                    "dirty",            // workdir state
    617                     NULL                // reduction class
     617                    NULL,               // reduction class
     618                    NULL,               // dvodb
     619                    NULL,               // tess_id
     620                    NULL                // end_stage
    618621                )
    619622        ) {
  • branches/end_stage/ippTools/src/regtool.c

    r16051 r16083  
    846846        return false;
    847847    }
     848
    848849    psString exp_name = psMetadataLookupStr(&status, config->args, "-exp_name");
    849850    if (!status) {
     
    12361237    psFree(output);
    12371238
    1238     if (!rawExpInsert(
    1239         config->dbh,
     1239    if (!rawExpInsert(config->dbh,
    12401240        (psS64)atoll(exp_id),
    12411241        exp_name,
     
    12481248        workdir ? workdir : newExp->workdir,
    12491249        reduction ? reduction : newExp->reduction,
     1250        dvodb ? dvodb : newExp->dvodb,
     1251        tess_id ? tess_id : newExp->tess_id,
     1252        end_stage ? end_stage : newExp->end_stage,
    12501253        filter,
    12511254        comment,
Note: See TracChangeset for help on using the changeset viewer.