Skip to content

Commit

Permalink
Rename member variable in ElectricalSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Sep 21, 2024
1 parent ce3227c commit cc0cd84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/nwb/ecephys/ElectricalSeries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void ElectricalSeries::initialize(const IO::BaseDataType& dataType,
electrodeInds[i] = channelVector[i].getGlobalIndex();
channelConversions[i] = channelVector[i].getConversion();
}
samplesRecorded = SizeArray(channelVector.size(), 0);
m_samplesRecorded = SizeArray(channelVector.size(), 0);

// make channel conversion dataset
channelConversion = std::unique_ptr<IO::BaseRecordingData>(
Expand Down Expand Up @@ -94,11 +94,11 @@ Status ElectricalSeries::writeChannel(SizeType channelInd,
// get offsets and datashape
std::vector<SizeType> dataShape = {
numSamples, 1}; // Note: schema has 1D and 3D but planning to deprecate
std::vector<SizeType> positionOffset = {samplesRecorded[channelInd],
std::vector<SizeType> positionOffset = {m_samplesRecorded[channelInd],
channelInd};

// track samples recorded per channel
samplesRecorded[channelInd] += numSamples;
m_samplesRecorded[channelInd] += numSamples;

// write channel data
if (channelInd == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/nwb/ecephys/ElectricalSeries.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ class ElectricalSeries : public TimeSeries
/**
* @brief The number of samples already written per channel.
*/
SizeArray samplesRecorded;
SizeArray m_samplesRecorded;
};
} // namespace AQNWB::NWB

0 comments on commit cc0cd84

Please sign in to comment.