Skip to content

Commit

Permalink
fix formatting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Apr 23, 2024
1 parent 7938c30 commit e1bb55f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install pynwb
python -m pynwb.validate *.nwb
python -m pynwb.validate *.nwb
2 changes: 1 addition & 1 deletion src/BaseIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class BaseIO
const std::string& value) = 0;

/**
* @brief Creates a dataset that holds an array of a single datetime value.
* @brief Creates a dataset that holds an array of a single string value.
* @param path The location in the file of the dataset.
* @param text The text value of the dataset.
* @return The status of the dataset creation operation.
Expand Down
11 changes: 0 additions & 11 deletions src/hdf5/HDF5IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,6 @@ Status HDF5IO::createStringDataSet(const std::string& path,
Status HDF5IO::createStringArrayDataSet(const std::string& path,
const std::string& text)
{
// std::unique_ptr<H5::DataSet> dataset;
// DataType H5type = getH5Type(BaseDataType::STR(text.length()));
// // DataSpace dSpace(H5S_SCALAR);

// DataSpace dSpace(1, 1, 1);

// dataset =
// std::make_unique<H5::DataSet>(file->createDataSet(path + "/" + name,
// H5type, dSpace));
// dataset->writeDataBlock(1, BaseDataType::STR(text.length()), text.c_str());

std::unique_ptr<BaseRecordingData> dataset;
BaseDataType textType = BaseDataType::STR(text.length());

Expand Down
2 changes: 1 addition & 1 deletion src/hdf5/HDF5IO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class HDF5IO : public BaseIO
const std::string& value) override;

/**
* @brief Creates a dataset that holds an array of a single datetime value.
* @brief Creates a dataset that holds an array of a single string value.
* @param path The location in the file of the dataset.
* @param text The text value of the dataset.
* @return The status of the dataset creation operation.
Expand Down

0 comments on commit e1bb55f

Please sign in to comment.