Skip to content

Commit

Permalink
Fix #109 Add missing axis attribute for ElectricalSeries.channel_conv…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
oruebel committed Sep 21, 2024
1 parent 33e3481 commit a50e4f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/nwb/ecephys/ElectricalSeries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ void ElectricalSeries::initialize()
std::vector<SizeType>(1, channelVector.size()),
BaseDataType::F32,
&channelConversions[0]);
m_io->createCommonNWBAttributes(getPath() + "/channel_conversion",
"hdmf-common",
"",
"Bit volts values for all channels");
// add axis attribute for channel conversion
const signed int axis_value = 1;
m_io->createAttribute(BaseDataType::I32,
&axis_value,
this->getPath() + "/channel_conversion",
"axis",
1);

// make electrodes dataset
electrodesDataset = std::unique_ptr<BaseRecordingData>(
Expand Down

0 comments on commit a50e4f1

Please sign in to comment.