Skip to content

Commit

Permalink
Merge pull request #110 from NeurodataWithoutBorders/fix_channel_conv…
Browse files Browse the repository at this point in the history
…ersion

 Add missing ``axis`` attribute for ``ElectricalSeries.channel_conversion``
  • Loading branch information
stephprince authored Sep 24, 2024
2 parents 33e3481 + a50e4f1 commit f9f987b
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 f9f987b

Please sign in to comment.