Skip to content

Commit

Permalink
Check for electrode name updates
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Feb 21, 2024
1 parent f15191b commit a86d08f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/SpikeSorter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ void Electrode::updateSettings(SpikeChannel* channel)

std::string cacheKey = channel->getIdentifier().toStdString();

// Check for changes in the channel name from upstream spike channel creators
if (name != channel->getName())
{
name = channel->getName();
}

int streamIdx = 0;
for (auto& stream : processor->getDataStreams())
{
Expand Down Expand Up @@ -163,6 +169,8 @@ void SpikeSorter::updateSettings()
if (spikeChannel->isValid())
{

LOGD("Found spike channel: ", spikeChannel->getName());

bool foundMatch = false;

for (auto electrode : electrodes)
Expand Down

0 comments on commit a86d08f

Please sign in to comment.