Commit 93e4f186 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: read the predictor label

No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
...@@ -75,6 +75,12 @@ protected: ...@@ -75,6 +75,12 @@ protected:
void DoExecute() override void DoExecute() override
{ {
m_FeaturesInfo.SetClassFieldNames( GetChoiceNames( "cfield" ), GetSelectedItems( "cfield" ) );
if( m_FeaturesInfo.m_SelectedCFieldIdx.empty() && GetClassifierCategory() == Supervised )
{
otbAppLogFATAL( << "No field has been selected for data labelling!" );
}
Superclass::DoExecute(); Superclass::DoExecute();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment