diff --git a/Documentation/Cookbook/Scripts/otb_warnings.py b/Documentation/Cookbook/Scripts/otb_warnings.py index 457c440bafcdabf4f217eea128150986599197ca..61af6ff2b244b165f964632f6dc595ede845979d 100644 --- a/Documentation/Cookbook/Scripts/otb_warnings.py +++ b/Documentation/Cookbook/Scripts/otb_warnings.py @@ -18,17 +18,6 @@ def parameter_warnings(app_warn, app, key): if "." in name: warn("name contains a special character (.)") - # disabled because there are so many for now - #if description == "": - #warn("missing description") - - # disabled because there are so many for now - #if len(description) > 0 and description[-1] != ".": - #warn("description does not end with a period") - - #if len(description) > 0 and " :" in description: - #warn("description has a space before a colon") - def application_documentation_warnings(app): "Emit warnings about application documentation" @@ -38,16 +27,9 @@ def application_documentation_warnings(app): description = app.GetDescription() longdescription = app.GetDocLongDescription() - # disable because there are so many for now - #if not longdescription[-1] == ".": - #warn("Application Long Description does not end with a period (.)") - if re.search("\\n [a-zA-Z]", longdescription): warn("Application Long Description contains '\\n ' pattern (usually not intended)") - #if " :" in longdescription: - #warn("Application Long Description has a space before a colon") - if app.GetNumberOfExamples() == 0: warn("Application has no examples") diff --git a/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx b/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx index dc59be6383a2445155a7c33d42a708e07eb13545..7f77cb9893ab22289cb411c849a21523f55907b8 100644 --- a/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx +++ b/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx @@ -417,7 +417,7 @@ private: "4) SampleExtraction: extract the samples descriptors (update of SampleSelection output file),\n" "5) ComputeImagesStatistics: compute images second order statistics,\n" "6) TrainVectorClassifier: train the SharkKMeans model,\n" - "7) ImageClassifier: performs the classification of the input image " + "7) ImageClassifier: perform the classification of the input image " "according to a model file.\n\n" "It's possible to choice random/periodic modes of the SampleSelection application.\n" "If you want keep the temporary files (sample selected, model file, ...), "