IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2009, 1:50:20 PM (17 years ago)
Author:
bills
Message:

require a label with -censorrun -exp_id to distinguish multiple magic runs for the same exposure

File:
1 edited

Legend:

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

    r25512 r25545  
    13991399    psMetadata *where = psMetadataAlloc();
    14001400
     1401    PXOPT_LOOKUP_S64(magic_id, config->args, "-magic_id", false, false);
     1402    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", false, false);
     1403    PXOPT_LOOKUP_STR(label, config->args, "-label", false, false);
     1404
     1405    if (!magic_id) {
     1406        if (!exp_id && !label) {
     1407            psError(PS_ERR_UNKNOWN, true, "either -magic_id or exp_id and label is required");
     1408            return false;
     1409        }
     1410    }
     1411
    14011412    // at least one of these required
    14021413    PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "==");
    14031414    PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
     1415    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    14041416
    14051417    if (!psListLength(where->list)) {
Note: See TracChangeset for help on using the changeset viewer.