IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30729


Ignore:
Timestamp:
Feb 22, 2011, 11:51:02 AM (15 years ago)
Author:
bills
Message:

add -destreaked option to -updaterun for chiptool warptool difftool and bgtool -updatechip and -updatewarp

Location:
trunk/ippTools/src
Files:
15 edited

Legend:

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

    r29423 r30729  
    324324    // pxUpdateRun gets parameters from config->args and runs the update query
    325325    bool result = pxUpdateRun(config, where, &query, "addRun", "add_id",
    326         "addProcessedExp", false);
     326        "addProcessedExp", false, false);
    327327
    328328    psFree(query);
  • trunk/ippTools/src/bgtool.c

    r29671 r30729  
    501501    psString query = psStringCopy("UPDATE chipBackgroundRun");
    502502    bool result = pxUpdateRun(config, where, &query, "chipBackgroundRun", "chip_bg_id",
    503                               "chipBackgroundImfile", true);
     503                              "chipBackgroundImfile", true, true);
    504504
    505505    psFree(query);
     
    14711471    psString query = psStringCopy("UPDATE warpBackgroundRun");
    14721472    bool result = pxUpdateRun(config, where, &query, "warpBackgroundRun", "warp_bg_id",
    1473                               "warpBackgroundSkyfile", true);
     1473                              "warpBackgroundSkyfile", true, true);
    14741474
    14751475    psFree(query);
  • trunk/ippTools/src/camtool.c

    r29902 r30729  
    283283
    284284    // pxUpdateRun gets parameters from config->args and updates
    285     bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true);
     285    bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true, true);
    286286    if (!result) {
    287287        psError(psErrorCodeLast(), false, "pxUpdateRun failed");
  • trunk/ippTools/src/chiptool.c

    r30544 r30729  
    443443
    444444    // pxUpdateRun gets parameters from config->args and updates
    445     bool result = pxUpdateRun(config, where, &query, "chipRun", "chip_id", "chipProcessedImfile", true);
     445    bool result = pxUpdateRun(config, where, &query, "chipRun", "chip_id", "chipProcessedImfile", true, true);
    446446    if (!result) {
    447447        psError(psErrorCodeLast(), false, "pxUpdateRun failed");
  • trunk/ippTools/src/chiptoolConfig.c

    r30049 r30729  
    9999    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_dist_group", 0,   "set dist group", NULL);
    100100    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0,         "set note", NULL);
     101    pxmagicAddArguments(updaterunArgs);
    101102
    102103    // -setimfiletoupdate
  • trunk/ippTools/src/diffphottool.c

    r28488 r30729  
    228228
    229229    // pxUpdateRun gets parameters from config->args and updates
    230     bool result = pxUpdateRun(config, where, &query, "diffPhotRun", "diff_phot_id", "diffPhotSkyfile", true);
     230    bool result = pxUpdateRun(config, where, &query, "diffPhotRun", "diff_phot_id", "diffPhotSkyfile", true, false);
    231231
    232232    psFree(query);
  • trunk/ippTools/src/difftool.c

    r30594 r30729  
    224224
    225225    // pxUpdateRun gets parameters from config->args and updates
    226     bool result = pxUpdateRun(config, where, &query, "diffRun", "diff_id", "diffSkyfile", true);
     226    bool result = pxUpdateRun(config, where, &query, "diffRun", "diff_id", "diffSkyfile", true, true);
    227227
    228228    psFree(query);
  • trunk/ippTools/src/difftoolConfig.c

    r30070 r30729  
    7373    psMetadataAddS16(updaterunArgs, PS_LIST_TAIL, "-set_diff_mode", 0,    "specify type of difference (WW=1,WS=2,SW=3,SS=4)", 0);
    7474    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0,         "define new note", NULL);
     75    pxmagicAddArguments(updaterunArgs);
    7576
    7677    // -addinputskyfile
  • trunk/ippTools/src/faketool.c

    r27391 r30729  
    348348
    349349    // pxUpdateRun gets parameters from config->args and updates
    350     bool result = pxUpdateRun(config, where, &query, "fakeRun", "fake_id", "fakeProcessedImfile", true);
     350    bool result = pxUpdateRun(config, where, &query, "fakeRun", "fake_id", "fakeProcessedImfile", true, false);
    351351    if (!result) {
    352352        psError(psErrorCodeLast(), false, "pxUpdateRun failed");
  • trunk/ippTools/src/pxtools.c

    r28486 r30729  
    278278
    279279// shared code for updating the various strings for a Run
    280 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group)
     280bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group, bool has_magicked)
    281281{
    282282    PS_ASSERT_PTR_NON_NULL(config, false);
     
    360360    if (fileWhere) {
    361361        psStringAppend(pQuery, "%s", fileWhere);
     362    }
     363    if (has_magicked) {
     364        pxmagicAddWhere(config, pQuery, runTable);
    362365    }
    363366
  • trunk/ippTools/src/pxtools.h

    r30544 r30729  
    8484bool pxGetOptions(FILE *stream, int argc, char **argv, pxConfig *config, psMetadata *modes, psMetadata *argSets);
    8585
    86 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group);
     86bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group, bool has_magicked);
    8787
    8888#define PXOPT_ADD_MODE(option, comment, modeval, argset) \
  • trunk/ippTools/src/stacktool.c

    r30429 r30729  
    750750
    751751    // pxUpdateRun gets parameters from config->args and updates
    752     bool result = pxUpdateRun(config, where, &query, "stackRun", "stack_id", "stackSumSkyfile", true);
     752    bool result = pxUpdateRun(config, where, &query, "stackRun", "stack_id", "stackSumSkyfile", true, false);
    753753
    754754    psFree(query);
  • trunk/ippTools/src/staticskytool.c

    r29066 r30729  
    360360
    361361    // pxUpdateRun gets parameters from config->args and updates
    362     bool result = pxUpdateRun(config, where, &query, "staticskyRun", "sky_id", "staticskyResult", true);
     362    bool result = pxUpdateRun(config, where, &query, "staticskyRun", "sky_id", "staticskyResult", true, false);
    363363    psFree(query);
    364364    psFree(where);
  • trunk/ippTools/src/warptool.c

    r30556 r30729  
    435435
    436436    // pxUpdateRun gets parameters from config->args and updates
    437     bool result = pxUpdateRun(config, where, &query, "warpRun", "warp_id", "warpSkyfile", true);
     437    bool result = pxUpdateRun(config, where, &query, "warpRun", "warp_id", "warpSkyfile", true, true);
    438438
    439439    psFree(query);
  • trunk/ippTools/src/warptoolConfig.c

    r29416 r30729  
    149149    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_dist_group", 0,   "define new dist_group", NULL);
    150150    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0,         "define new note", NULL);
     151    pxmagicAddArguments(updaterunArgs);
    151152
    152153    // -exp
Note: See TracChangeset for help on using the changeset viewer.