IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2008, 4:02:14 PM (18 years ago)
Author:
jhoblitt
Message:

MERGE from HEAD

Location:
branches/cleanup/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/ippTools/src

    • Property svn:ignore
      •  

        old new  
        2323difftool
        2424stacktool
         25faketool
        2526dettool
        2627detselect
  • branches/cleanup/ippTools/src/warptool.c

    r17791 r18076  
    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;
     
    526526    PXOPT_LOOKUP_STR(mapfile, config->args, "-mapfile", false, false);
    527527    PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false);
    528     PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false);
    529528    PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    530529
     
    544543        }
    545544    } else {
    546         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        );
    547552    }
    548553
     
    10291034
    10301035    PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false);
    1031     PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false);
     1036    PXOPT_LOOKUP_STR(fake_id, config->args, "-fake_id", false, false);
    10321037    PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", false, false);
    10331038    PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", false, false);
     
    10461051    PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "==");
    10471052
    1048     // convert cam_id into a psS64
    1049     if (cam_id) {
    1050         if (!psMetadataAddS64(where, PS_LIST_TAIL, "camRun.cam_id", 0, "==", (psS64)atoll(cam_id))) {
    1051             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");
    10521057            psFree(where);
    10531058            return false;
Note: See TracChangeset for help on using the changeset viewer.