Skip to content

Commit

Permalink
remove obsolete empty feature checks in spike_width1
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Dec 14, 2023
1 parent d5d5ed7 commit e7907c8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions efel/cppcore/LibV5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,6 @@ int LibV5::spike_width1(mapStr2intVec& IntFeatureData,
getFeatures(IntFeatureData, {"min_AHP_indices", "peak_indices"});

vector<double> spike_width1;
// Check if peak_indices and min_AHP_indices are empty
if (intFeatures.at("peak_indices").empty() ||
intFeatures.at("min_AHP_indices").empty()) {
setVec(DoubleFeatureData, StringData, "spike_half_width", spike_width1);
return 0;
}

// Calculate spike width
int retVal = __spike_width1(doubleFeatures.at("T"), doubleFeatures.at("V"),
intFeatures.at("peak_indices"),
Expand Down

0 comments on commit e7907c8

Please sign in to comment.