Skip to content

Commit

Permalink
Revert "remove featurename.find(";") check"
Browse files Browse the repository at this point in the history
This reverts commit 954613a.
  • Loading branch information
anilbey committed Oct 20, 2023
1 parent 443e083 commit f11e36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions efel/cppcore/cfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ double cFeature::getDistance(string strName, double mean, double std,
}

string cFeature::featuretype(string featurename) {
int npos = featurename.find(";");
if (npos != string::npos) {
featurename = featurename.substr(0, npos);
}
if (featurename == "__test_efel_assertion__") // for testing only
throw EfelAssertionError("Test efel assertion is successfully triggered.");
string type = featuretypes[featurename];
Expand Down

0 comments on commit f11e36d

Please sign in to comment.