From df9267d5a592a4407e5d8e9e0097cabb5eeb4b1d Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Thu, 30 Jan 2025 19:31:12 -0800 Subject: [PATCH] Remove colNames from DynamicTable.initialize --- src/nwb/file/ElectrodeTable.cpp | 3 +-- src/nwb/file/ElectrodeTable.hpp | 3 --- src/nwb/hdmf/table/DynamicTable.cpp | 4 +--- src/nwb/hdmf/table/DynamicTable.hpp | 3 +-- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/nwb/file/ElectrodeTable.cpp b/src/nwb/file/ElectrodeTable.cpp index baf092e6..da02c44f 100644 --- a/src/nwb/file/ElectrodeTable.cpp +++ b/src/nwb/file/ElectrodeTable.cpp @@ -44,8 +44,7 @@ ElectrodeTable::~ElectrodeTable() {} void ElectrodeTable::initialize(const std::string& description) { // create group - DynamicTable::initialize(description, - {}); // create column_names in finalize() + DynamicTable::initialize(description); m_electrodeDataset->initialize(std::unique_ptr( m_io->createArrayDataSet(IO::BaseDataType::I32, diff --git a/src/nwb/file/ElectrodeTable.hpp b/src/nwb/file/ElectrodeTable.hpp index b445bd53..79a4d19f 100644 --- a/src/nwb/file/ElectrodeTable.hpp +++ b/src/nwb/file/ElectrodeTable.hpp @@ -66,9 +66,6 @@ class ElectrodeTable : public DynamicTable "/general/extracellular_ephys/electrodes"; private: - const std::vector m_defaultColNames = { - "group", "group_name", "location"}; - /** * @brief The global indices for each electrode. */ diff --git a/src/nwb/hdmf/table/DynamicTable.cpp b/src/nwb/hdmf/table/DynamicTable.cpp index 4c1dec18..2ef4dbed 100644 --- a/src/nwb/hdmf/table/DynamicTable.cpp +++ b/src/nwb/hdmf/table/DynamicTable.cpp @@ -20,11 +20,9 @@ DynamicTable::DynamicTable(const std::string& path, DynamicTable::~DynamicTable() {} /** Initialization function*/ -void DynamicTable::initialize(const std::string& description, - const std::vector& colNames) +void DynamicTable::initialize(const std::string& description) { Container::initialize(); - m_colNames = colNames; if (description != "") m_io->createAttribute(description, m_path, "description"); } diff --git a/src/nwb/hdmf/table/DynamicTable.hpp b/src/nwb/hdmf/table/DynamicTable.hpp index 7f4f7b2b..1f5ea0ea 100644 --- a/src/nwb/hdmf/table/DynamicTable.hpp +++ b/src/nwb/hdmf/table/DynamicTable.hpp @@ -43,8 +43,7 @@ class DynamicTable : public Container * @param description The description of the table (optional). * @param colNames Names of the columns for the table */ - void initialize(const std::string& description, - const std::vector& colNames); + void initialize(const std::string& description); /** * @brief Adds a column of vector string data to the table.