IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11818


Ignore:
Timestamp:
Feb 14, 2007, 5:55:48 PM (19 years ago)
Author:
jhoblitt
Message:

remove exp_tag & p3_version from p4Scfile's primary key

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/p4.md

    r11779 r11818  
    1 # $Id: p4.md,v 1.11 2007-02-13 22:33:30 jhoblitt Exp $
     1# $Id: p4.md,v 1.12 2007-02-15 03:53:24 jhoblitt Exp $
    22
    33#
     
    2222
    2323# the list of imfiles in our skycell keyed against phase 3
     24# only allow one p3_version of an exp_tag per p4Run
    2425p4InputExp METADATA
    2526    p4_id       S32         0       # Primary Key
    2627    exp_tag     STR         64      # Primary Key
    27     p3_version  S32         0       # Primary Key
     28    p3_version  S32         0       # Key
    2829# if magic is T then look for the exp_tag in the magic output tables
    29     magiced     BOOL        f       # Primary Key
     30    magiced     BOOL        f       # Key
    3031END
    3132
     
    4546    skycell_id  STR         64      # Primary Key
    4647    tess_id     STR         64      # Primary Key
    47     exp_tag     STR         64      # Primary Key
    48     p3_version  S32         0       # Primary Key
     48    exp_tag     STR         64      # Key
     49    p3_version  S32         0       # Key
    4950    uri         STR         255
    5051    bg          F64         0.0
  • trunk/dbconfig/p5.md

    r11808 r11818  
    1 # $Id: p5.md,v 1.2 2007-02-15 02:01:30 jhoblitt Exp $
     1# $Id: p5.md,v 1.3 2007-02-15 03:53:24 jhoblitt Exp $
    22
    33p5Run METADATA
     
    1818    skycell_id  STR         64      # Primary Key
    1919    tess_id     STR         64      # Primary Key
    20     exp_tag     STR         64      # Primary Key
    21     p3_version  S32         0       # Primary Key
    2220# either a input or a template
    2321    kind        STR         64      # Key
  • trunk/ippTools/src/difftool.c

    r11811 r11818  
    235235        return false;
    236236    }
    237     psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
    238     if (!status) {
    239         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
    240         return false;
    241     }
    242     if (!exp_tag) {
    243         psError(PS_ERR_UNKNOWN, true, "-exp_tag is required");
    244         return false;
    245     }
    246 
    247     // defaults to 0
    248     psS32 p3_version = psMetadataLookupS32(&status, config->args, "-p3_version");
    249     if (!status) {
    250         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -p3_version");
    251         return false;
    252     }
    253237
    254238    psString kind = psMetadataLookupStr(&status, config->args, "-kind");
     
    273257            skycell_id,
    274258            tess_id,
    275             exp_tag,
    276             p3_version,
    277259            kind,
    278260            template
     
    402384        "  AND p5InputScfile.skycell_id = p4Scfile.skycell_id\n"
    403385        "  AND p5InputScfile.tess_id    = p4Scfile.tess_id\n"
    404         "  AND p5InputScfile.exp_tag    = p4Scfile.exp_tag\n"
    405         "  AND p5InputScfile.p3_version = p4Scfile.p3_version\n"
    406386        " LEFT JOIN p5DiffScfile\n"
    407387        "   ON p5InputScfile.p5_id      = p5DiffScfile.p5_id\n"
  • trunk/ippTools/src/difftoolConfig.c

    r11811 r11818  
    7878    psMetadataAddStr(addinputscfileArgs, PS_LIST_TAIL, "-tess_id", 0,
    7979            "dfine tess ID", NULL);
    80     psMetadataAddStr(addinputscfileArgs, PS_LIST_TAIL, "-exp_tag", 0,
    81             "define exposure tag (required)", NULL);
    82     psMetadataAddS32(addinputscfileArgs, PS_LIST_TAIL, "-p3_version", 0,
    83             "define phase 3 version of exposure tag (required)", 0);
    8480    psMetadataAddStr(addinputscfileArgs, PS_LIST_TAIL, "-kind", 0,
    8581            "define kind", NULL);
     
    9793    psMetadataAddStr(inputscfileArgs, PS_LIST_TAIL, "-tess_id", 0,
    9894            "search by tess ID", NULL);
    99     psMetadataAddStr(inputscfileArgs, PS_LIST_TAIL, "-exp_tag", 0,
    100             "search by exposure tag (required)", NULL);
    101     psMetadataAddS32(inputscfileArgs, PS_LIST_TAIL, "-p3_version", 0,
    102             "search by phase 3 version of exposure tag (required)", 0);
    10395    psMetadataAddStr(inputscfileArgs, PS_LIST_TAIL, "-kind", 0,
    10496            "search by kind", NULL);
     
    260252    addWhereStr(skycell_id);
    261253    addWhereStr(tess_id);
    262     addWhereStr(exp_tag);
    263254
    264255    if (config->where->list->n < 1) {
Note: See TracChangeset for help on using the changeset viewer.