IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2008, 10:31:08 AM (18 years ago)
Author:
jhoblitt
Message:

fwv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/faketool/ippTools/src/warptool.c

    r17917 r17938  
    111111
    112112    // required options
    113     PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", true, false);
     113    PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", true, false);
    114114    PXOPT_LOOKUP_STR(mode, config->args, "-mode", true, false);
    115115    // check mode
     
    133133    warpRunRow *warpRun = warpRunRowAlloc(
    134134            0,          // ID
    135             (psS64)atoll(cam_id),
     135            (psS64)atoll(fake_id),
    136136            mode,
    137137            "run",      // state
     
    176176
    177177    PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false);
    178     PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false);
     178    PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false);
    179179    PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false);
    180180    PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false);
     
    190190    }
    191191
    192     // convert cam_id into a psS64
    193     if (cam_id) {
    194         if (!psMetadataAddS64(where, PS_LIST_TAIL, "cam_id", 0, "==", (psS64)atoll(cam_id))) {
    195             psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");
     192    // convert fake_id into a psS64
     193    if (fake_id) {
     194        if (!psMetadataAddS64(where, PS_LIST_TAIL, "fake_id", 0, "==", (psS64)atoll(fake_id))) {
     195            psError(PS_ERR_UNKNOWN, false, "failed to add item fake_id");
    196196            psFree(where);
    197197            return false;
     
    543543        }
    544544    } else {
    545         warpSkyCellMapInsert(config->dbh, (psS64)atoll(warp_id), NULL, NULL, 0, NULL, code);
     545        warpSkyCellMapInsert(config->dbh,
     546            (psS64)atoll(warp_id),
     547            NULL,   // skycell_id
     548            NULL,   // tess_id
     549            NULL,   // class_id
     550            code    // fault
     551        );
    546552    }
    547553
     
    10281034
    10291035    PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false);
    1030     PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false);
     1036    PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false);
    10311037    PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false);
    10321038    PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false);
     
    10451051    PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "==");
    10461052
    1047     // convert cam_id into a psS64
    1048     if (cam_id) {
    1049         if (!psMetadataAddS64(where, PS_LIST_TAIL, "camRun.cam_id", 0, "==", (psS64)atoll(cam_id))) {
    1050             psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");
     1053    // convert fake_id into a psS64
     1054    if (fake_id) {
     1055        if (!psMetadataAddS64(where, PS_LIST_TAIL, "fakeRun.fake_id", 0, "==", (psS64)atoll(fake_id))) {
     1056            psError(PS_ERR_UNKNOWN, false, "failed to add item fake_id");
    10511057            psFree(where);
    10521058            return false;
Note: See TracChangeset for help on using the changeset viewer.