From a6d86f99a600bc6d1777625fcf876970c70d32b9 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:32:55 -0700 Subject: [PATCH] remove old conditional --- src/nwb/file/ElectrodeTable.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/nwb/file/ElectrodeTable.cpp b/src/nwb/file/ElectrodeTable.cpp index bb6ac214..027c9f6a 100644 --- a/src/nwb/file/ElectrodeTable.cpp +++ b/src/nwb/file/ElectrodeTable.cpp @@ -41,16 +41,10 @@ void ElectrodeTable::addElectrodes(std::vector 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"); } }