Skip to content

Commit

Permalink
Updated ElectrodeTable static paths to not used trailing / for consis…
Browse files Browse the repository at this point in the history
…tency
  • Loading branch information
oruebel committed Sep 22, 2024
1 parent 8f13baf commit bf92ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/nwb/file/ElectrodeTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ElectrodeTable : public DynamicTable
* @brief The path to the ElectrodeTable.
*/
inline const static std::string electrodeTablePath =
"/general/extracellular_ephys/electrodes/";
"/general/extracellular_ephys/electrodes";

private:
/**
Expand Down Expand Up @@ -114,6 +114,6 @@ class ElectrodeTable : public DynamicTable
/**
* @brief The references path to the ElectrodeGroup
*/
std::string groupPathBase = "/general/extracellular_ephys/";
std::string groupPathBase = "/general/extracellular_ephys";
};
} // namespace AQNWB::NWB
2 changes: 1 addition & 1 deletion tests/testFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TEST_CASE("ElectrodeTable", "[ecephys]")
// Check if id datasets are created correctly
SizeType numChannels = 3;
std::unique_ptr<BaseRecordingData> id_data =
io->getDataSet(NWB::ElectrodeTable::electrodeTablePath + "id");
io->getDataSet(NWB::ElectrodeTable::electrodeTablePath + "/id");
std::unique_ptr<IO::HDF5::HDF5RecordingData> idDataset(
dynamic_cast<IO::HDF5::HDF5RecordingData*>(id_data.release()));
int* buffer = new int[numChannels];
Expand Down

0 comments on commit bf92ce2

Please sign in to comment.