Skip to content

Commit

Permalink
Fix reading of parameter from traineddata normproto component
Browse files Browse the repository at this point in the history
The NonEssential parameter was wrongly derived from linear_token instead
of essential_token and therefore always set to true.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 12, 2019
1 parent c07bc4e commit c76ceaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classify/clusttool.cpp
Expand Up @@ -154,7 +154,7 @@ PARAM_DESC *ReadParamDesc(TFile *fp, uint16_t N) {
linear_token, essential_token, &ParamDesc[i].Min,
&ParamDesc[i].Max) == 4);
ParamDesc[i].Circular = (linear_token[0] == 'c');
ParamDesc[i].NonEssential = (linear_token[0] != 'e');
ParamDesc[i].NonEssential = (essential_token[0] != 'e');
ParamDesc[i].Range = ParamDesc[i].Max - ParamDesc[i].Min;
ParamDesc[i].HalfRange = ParamDesc[i].Range / 2;
ParamDesc[i].MidRange = (ParamDesc[i].Max + ParamDesc[i].Min) / 2;
Expand Down

0 comments on commit c76ceaf

Please sign in to comment.