Skip to content

Commit

Permalink
update test to fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Sep 11, 2024
1 parent 378a8e4 commit 50004b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/testNWBFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,15 @@ TEST_CASE("createMultipleEcephysDatasets", "[nwb]")
dataShape, positionOffset, mockData.data(), mockTimestamps.data());

// write spike event series data
SizeType numEvents = 10;
NWB::SpikeEventSeries* ses0 =
static_cast<NWB::SpikeEventSeries*>(recordingContainers->getContainer(2));
ses0->writeSpike(numSamples, 1, mockData.data(), &mockTimestamps[0]);
NWB::SpikeEventSeries* ses1 =
static_cast<NWB::SpikeEventSeries*>(recordingContainers->getContainer(2));
ses1->writeSpike(numSamples, 1, mockData.data(), &mockTimestamps[0]);
static_cast<NWB::SpikeEventSeries*>(recordingContainers->getContainer(3));
for (SizeType i = 0; i < numEvents; ++i) {
ses0->writeSpike(numSamples, 1, mockData.data(), &mockTimestamps[0]);
ses1->writeSpike(numSamples, 1, mockData.data(), &mockTimestamps[0]);
}

nwbfile.finalize();
}
Expand Down

0 comments on commit 50004b7

Please sign in to comment.