IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32479


Ignore:
Timestamp:
Oct 4, 2011, 11:44:53 AM (15 years ago)
Author:
bills
Message:

implement magicdstool -definecopy for -stage camera. Require that label be set

Location:
trunk/ippTools
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r32422 r32479  
    275275        magicdstool_definebyquery_warp_bg.sql \
    276276        magicdstool_definebyquery_diff.sql \
     277        magicdstool_definecopy_camera.sql \
    277278        magicdstool_definecopy_chip.sql \
    278279        magicdstool_definecopy_warp.sql \
  • trunk/ippTools/src/magicdstool.c

    r30854 r32479  
    350350    PXOPT_LOOKUP_STR(stage, config->args, "-stage", true, false);
    351351    PXOPT_LOOKUP_STR(workdir, config->args, "-workdir", true, false);
     352    PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", true, false);
    352353
    353354    // Optional
    354355    PXOPT_LOOKUP_STR(recoveryroot, config->args, "-recoveryroot", false, false);
    355356    PXOPT_LOOKUP_BOOL(noreplace, config->args, "-noreplace", false);
    356     PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false);
    357357    PXOPT_LOOKUP_STR(set_data_group, config->args, "-set_data_group", false, false);
    358358    PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false);
     
    374374    pxAddLabelSearchArgs (config, where, "-magic_label", "magicRun.label", "=="); // define magic label
    375375    psString labelName = NULL;                                                    // Name of label
    376     psStringAppend(&labelName, "%sRun.label", stage);
     376    if (strcmp(stage, "camera")) {
     377        psStringAppend(&labelName, "%sRun.label", stage);
     378    } else {
     379        psStringAppend(&labelName, "camRun.label");
     380    }
    377381    pxAddLabelSearchArgs (config, where, "-stage_label", labelName, "=="); // define stageRun label
    378382    psFree(labelName);
     
    392396        break;
    393397      case IPP_STAGE_CAMERA:
     398        query = pxDataGet("magicdstool_definecopy_camera.sql");
     399        break;
    394400      case IPP_STAGE_DIFF:
    395401      case IPP_STAGE_FAKE:
  • trunk/ippTools/src/magicdstoolConfig.c

    r30854 r32479  
    7979    psMetadataAddStr(definecopyArgs, PS_LIST_TAIL, "-recoveryroot", 0, "define recovery directory", NULL);
    8080    psMetadataAddBool(definecopyArgs, PS_LIST_TAIL, "-noreplace", 0, "do not replace input files with the destreaked versions", false);
    81     psMetadataAddStr(definecopyArgs, PS_LIST_TAIL, "-set_label",    0, "define label", NULL);
     81    psMetadataAddStr(definecopyArgs, PS_LIST_TAIL, "-set_label",    0, "define label (required)", NULL);
    8282    psMetadataAddStr(definecopyArgs, PS_LIST_TAIL, "-set_data_group", 0, "define data_group", NULL);
    8383    psMetadataAddStr(definecopyArgs, PS_LIST_TAIL, "-set_note", 0, "define note", NULL);
Note: See TracChangeset for help on using the changeset viewer.