Skip to content

Commit

Permalink
remove old conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Sep 9, 2024
1 parent ab6a995 commit a6d86f9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/nwb/file/ElectrodeTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,10 @@ void ElectrodeTable::addElectrodes(std::vector<Channel> channels)
{
// create datasets
for (const auto& ch : channels) {
// if the electrode number (row ID) already exists, skip it
if (std::find(
electrodeNumbers.begin(), electrodeNumbers.end(), ch.globalIndex)
== electrodeNumbers.end())
{
groupReferences.push_back(groupPathBase + ch.groupName);
groupNames.push_back(ch.groupName);
electrodeNumbers.push_back(ch.globalIndex);
locationNames.push_back("unknown");
}
groupReferences.push_back(groupPathBase + ch.groupName);
groupNames.push_back(ch.groupName);
electrodeNumbers.push_back(ch.globalIndex);
locationNames.push_back("unknown");
}
}

Expand Down

0 comments on commit a6d86f9

Please sign in to comment.