Skip to content

Commit

Permalink
Rename member variable in SpikeEventSeries
Browse files Browse the repository at this point in the history
oruebel committed Sep 21, 2024
1 parent cc0cd84 commit f99ed91
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/nwb/ecephys/SpikeEventSeries.cpp
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ void SpikeEventSeries::initialize(const IO::BaseDataType& dataType,
conversion,
resolution,
offset);
this->eventsRecorded = 0;
this->m_eventsRecorded = 0;
}

Status SpikeEventSeries::writeSpike(const SizeType& numSamples,
@@ -46,12 +46,12 @@ Status SpikeEventSeries::writeSpike(const SizeType& numSamples,
std::vector<SizeType> positionOffset;
if (numChannels == 1) {
dataShape = {1, numSamples};
positionOffset = {this->eventsRecorded, 0};
positionOffset = {this->m_eventsRecorded, 0};
} else {
dataShape = {1, numChannels, numSamples};
positionOffset = {this->eventsRecorded, 0, 0};
positionOffset = {this->m_eventsRecorded, 0, 0};
}
this->eventsRecorded += 1;
this->m_eventsRecorded += 1;

// write channel data
return writeData(dataShape, positionOffset, data, timestamps);
2 changes: 1 addition & 1 deletion src/nwb/ecephys/SpikeEventSeries.hpp
Original file line number Diff line number Diff line change
@@ -77,6 +77,6 @@ class SpikeEventSeries : public ElectricalSeries
/**
* @brief The number of events already written.
*/
SizeType eventsRecorded;
SizeType m_eventsRecorded;
};
} // namespace AQNWB::NWB

0 comments on commit f99ed91

Please sign in to comment.