Changeset 7304
- Timestamp:
- Jun 2, 2006, 11:58:39 AM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
dettool.c (modified) (6 diffs)
-
dettoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r7302 r7304 749 749 return false; 750 750 } 751 if (!det_id) { 752 psError(PS_ERR_UNKNOWN, true, "-det_id is required"); 753 return false; 754 } 751 755 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id"); 752 756 if (!status) { … … 754 758 return false; 755 759 } 760 if (!class_id) { 761 psError(PS_ERR_UNKNOWN, true, "-class_id is required"); 762 return false; 763 } 756 764 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 757 765 if (!status) { … … 759 767 return false; 760 768 } 769 if (!uri) { 770 psError(PS_ERR_UNKNOWN, true, "-uri is required"); 771 return false; 772 } 773 psString stats = psMetadataLookupStr(&status, config->args, "-stats"); 774 if (!status) { 775 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats"); 776 return false; 777 } 778 if (!stats) { 779 psError(PS_ERR_UNKNOWN, true, "-stats is required"); 780 return false; 781 } 761 782 psString recipe = psMetadataLookupStr(&status, config->args, "-recipe"); 762 783 if (!status) { … … 764 785 return false; 765 786 } 766 psString stats = psMetadataLookupStr(&status, config->args, "-stats"); 767 if (!status) { 768 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats"); 787 if (!recipe) { 788 psError(PS_ERR_UNKNOWN, true, "-recipe is required"); 769 789 return false; 770 790 } … … 879 899 PS_ASSERT_PTR_NON_NULL(config, false); 880 900 901 // XXX det_id is requried as a simplification 902 bool status = false; 903 psString det_id = psMetadataLookupStr(&status, config->args, "-det_id"); 904 if (!status) { 905 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id"); 906 return false; 907 } 908 if (!det_id) { 909 psError(PS_ERR_UNKNOWN, true, "-det_id is required"); 910 return false; 911 } 912 881 913 // find all detStackedImfile for det_id 882 // XXX det_id is requried as a simplification883 914 psArray *stackedImfiles = 884 915 detStackedImfileSelectRowObjects(config->dbh, config->where, 0); … … 889 920 890 921 // find all class_ids for the det_id's associated detInputExps 891 // find detInputExps in det_id892 bool status = false;893 psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");894 if (!status) {895 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");896 psFree(stackedImfiles);897 return false;898 }899 900 922 psArray *valid_class_ids = validDetInputClassIds(config, det_id); 901 923 if (!valid_class_ids) { -
trunk/ippTools/src/dettoolConfig.c
r7303 r7304 81 81 psMetadata *addstacArgs = psMetadataAlloc(); 82 82 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-det_id", 0, 83 "define detrend ID ", NULL);83 "define detrend ID (required)", NULL); 84 84 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-iter", 0, 85 85 "define iteration number", NULL); 86 86 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-class_id", 0, 87 "define class ID ", NULL);87 "define class ID (required)", NULL); 88 88 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-uri", 0, 89 "define URI ", NULL);89 "define URI (required)", NULL); 90 90 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-stats", 0, 91 "define stat ", NULL);91 "define stat (required)", NULL); 92 92 psMetadataAddStr(addstacArgs, PS_LIST_TAIL, "-recipe", 0, 93 "define recipe ", NULL);93 "define recipe (required)", NULL); 94 94 95 95 // -stacked … … 109 109 psMetadata *stacframeArgs = psMetadataAlloc(); 110 110 psMetadataAddStr(stacframeArgs, PS_LIST_TAIL, "-det_id", 0, 111 "search for detrend ID ", NULL);111 "search for detrend ID (required)", NULL); 112 112 psMetadataAddStr(stacframeArgs, PS_LIST_TAIL, "-iter", 0, 113 113 "search for iteration number", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
