Skip to content

Commit 5785d0d

Browse files
committed
Fix spike indexing issue in binary format
1 parent 38175d9 commit 5785d0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Plugins/BinaryWriter/BinaryRecording.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void BinaryRecording::openFiles(File rootFolder, int experimentNumber, int recor
266266
found = true;
267267
m_spikeFileIndexes.set(sp, i);
268268
unsigned int numChans = indexedChannels[i];
269-
indexedChannels.set(i, numChans);
269+
indexedChannels.set(i, numChans + 1);
270270
m_spikeChannelIndexes.set(sp, numChans + 1);
271271
jsonSpikeChannels.getReference(i).append(var(jsonChannel));
272272
break;
@@ -278,7 +278,7 @@ void BinaryRecording::openFiles(File rootFolder, int experimentNumber, int recor
278278
int fileIndex = m_spikeFiles.size();
279279
m_spikeFileIndexes.set(sp, fileIndex);
280280
indexedSpikes.add(ch);
281-
m_spikeChannelIndexes.set(sp, 0);
281+
m_spikeChannelIndexes.set(sp, 1);
282282
indexedChannels.add(1);
283283
ScopedPointer<EventRecording> rec = new EventRecording();
284284

0 commit comments

Comments
 (0)