Skip to content

Commit

Permalink
Remove colNames from DynamicTable.initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Jan 31, 2025
1 parent 394c693 commit df9267d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/nwb/file/ElectrodeTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<IO::BaseRecordingData>(
m_io->createArrayDataSet(IO::BaseDataType::I32,
Expand Down
3 changes: 0 additions & 3 deletions src/nwb/file/ElectrodeTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ class ElectrodeTable : public DynamicTable
"/general/extracellular_ephys/electrodes";

private:
const std::vector<std::string> m_defaultColNames = {
"group", "group_name", "location"};

/**
* @brief The global indices for each electrode.
*/
Expand Down
4 changes: 1 addition & 3 deletions src/nwb/hdmf/table/DynamicTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ DynamicTable::DynamicTable(const std::string& path,
DynamicTable::~DynamicTable() {}

/** Initialization function*/
void DynamicTable::initialize(const std::string& description,
const std::vector<std::string>& colNames)
void DynamicTable::initialize(const std::string& description)
{
Container::initialize();
m_colNames = colNames;
if (description != "")
m_io->createAttribute(description, m_path, "description");
}
Expand Down
3 changes: 1 addition & 2 deletions src/nwb/hdmf/table/DynamicTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>& colNames);
void initialize(const std::string& description);

/**
* @brief Adds a column of vector string data to the table.
Expand Down

0 comments on commit df9267d

Please sign in to comment.