From bf92ce21bd297963f342d5e1dcca0251a00aedbd Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Sat, 21 Sep 2024 17:00:18 -0700 Subject: [PATCH] Updated ElectrodeTable static paths to not used trailing / for consistency --- src/nwb/file/ElectrodeTable.hpp | 4 ++-- tests/testFile.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nwb/file/ElectrodeTable.hpp b/src/nwb/file/ElectrodeTable.hpp index 11d98d03..b73265ca 100644 --- a/src/nwb/file/ElectrodeTable.hpp +++ b/src/nwb/file/ElectrodeTable.hpp @@ -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: /** @@ -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 diff --git a/tests/testFile.cpp b/tests/testFile.cpp index c7518390..7e26e9d9 100644 --- a/tests/testFile.cpp +++ b/tests/testFile.cpp @@ -36,7 +36,7 @@ TEST_CASE("ElectrodeTable", "[ecephys]") // Check if id datasets are created correctly SizeType numChannels = 3; std::unique_ptr id_data = - io->getDataSet(NWB::ElectrodeTable::electrodeTablePath + "id"); + io->getDataSet(NWB::ElectrodeTable::electrodeTablePath + "/id"); std::unique_ptr idDataset( dynamic_cast(id_data.release())); int* buffer = new int[numChannels];