IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7316


Ignore:
Timestamp:
Jun 2, 2006, 3:19:00 PM (20 years ago)
Author:
jhoblitt
Message:

change -normalized[frame] to require option -det_id

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r7315 r7316  
    11741174   
    11751175    // det_id is required
     1176    // psString det_id is unused... it is only checked for to make sure it is
     1177    // in config->where
     1178    bool status = false;
     1179    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     1180    if (!status) {
     1181        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");
     1182        return false;
     1183    }
     1184    if (!det_id) {
     1185        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1186        return false;
     1187    }
    11761188
    11771189    psArray *masterImfiles =
     
    12051217    PS_ASSERT_PTR_NON_NULL(config, false);
    12061218   
    1207     // det_id is required
     1219    // XXX det_id is requried as a simplification
    12081220    bool status = false;
    12091221    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    12121224        return false;
    12131225    }
     1226    if (!det_id) {
     1227        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1228        return false;
     1229    }
    12141230
    12151231    // find all detNormalizedIImfile for det_id
    1216     // XXX det_id is requried as a simplification
    12171232    psArray *masterImfiles =
    12181233        detNormalizedImfileSelectRowObjects(config->dbh, config->where, 0);
  • trunk/ippTools/src/dettoolConfig.c

    r7315 r7316  
    137137    psMetadata *normalizedArgs = psMetadataAlloc();
    138138    psMetadataAddStr(normalizedArgs, PS_LIST_TAIL, "-det_id",  0,
    139         "search for detrend ID", NULL);
     139        "search for detrend ID (required)", NULL);
    140140    psMetadataAddStr(normalizedArgs, PS_LIST_TAIL, "-iter",  0,
    141141        "search for iteration number", NULL);
     
    150150    psMetadata *normalizedframeArgs = psMetadataAlloc();
    151151    psMetadataAddStr(normalizedframeArgs, PS_LIST_TAIL, "-det_id",  0,
    152         "search for detrend ID", NULL);
     152        "search for detrend ID (required)", NULL);
    153153    psMetadataAddStr(normalizedframeArgs, PS_LIST_TAIL, "-iter",  0,
    154154        "search for iteration number", NULL);
Note: See TracChangeset for help on using the changeset viewer.