Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Sep 8, 2024
1 parent 69c3c4e commit e75c7ad
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "io/BaseIO.hpp"
#include "io/hdf5/HDF5IO.hpp"


namespace AQNWB
{
/**
Expand Down
9 changes: 6 additions & 3 deletions src/io/ReadIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include "Types.hpp"


using StorageObjectType = AQNWB::Types::StorageObjectType;
using SizeType = AQNWB::Types::SizeType;

Expand Down Expand Up @@ -62,8 +61,12 @@ class DataBlockGeneric
/**
* \brief Parameterized constructor
*/
DataBlockGeneric(const std::any& data, const std::vector<SizeType>& shape, const std::type_index& typeIndex)
: data(data), shape(shape), typeIndex(typeIndex)
DataBlockGeneric(const std::any& data,
const std::vector<SizeType>& shape,
const std::type_index& typeIndex)
: data(data)
, shape(shape)
, typeIndex(typeIndex)
{
}
};
Expand Down
3 changes: 1 addition & 2 deletions src/nwb/NWBFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ Status NWBFile::createElectricalSeries(
Device device = Device(devicePath, io);
device.initialize("description", "unknown");

ElectrodeGroup elecGroup =
ElectrodeGroup(electrodePath, io);
ElectrodeGroup elecGroup = ElectrodeGroup(electrodePath, io);
elecGroup.initialize("description", "unknown", device);

// Setup electrical series datasets
Expand Down
5 changes: 2 additions & 3 deletions src/nwb/file/ElectrodeGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ ElectrodeGroup::ElectrodeGroup(const std::string& path,
ElectrodeGroup::~ElectrodeGroup() {}

void ElectrodeGroup::initialize(const std::string& description,
const std::string& location,
const Device& device)
const std::string& location,
const Device& device)
{
Container::initialize();

io->createCommonNWBAttributes(path, "core", "ElectrodeGroup", description);
io->createAttribute(location, path, "location");
io->createLink("/" + path + "/device", "/" + device.getPath());
}

4 changes: 1 addition & 3 deletions src/nwb/file/ElectrodeGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class ElectrodeGroup : public Container
* @param path The location in the file of the electrode group.
* @param io A shared pointer to the IO object.
*/
ElectrodeGroup(const std::string& path,
std::shared_ptr<IO::BaseIO> io);
ElectrodeGroup(const std::string& path, std::shared_ptr<IO::BaseIO> io);

/**
* @brief Destructor.
Expand All @@ -42,6 +41,5 @@ class ElectrodeGroup : public Container
void initialize(const std::string& description,
const std::string& location,
const Device& device);

};
} // namespace AQNWB::NWB

0 comments on commit e75c7ad

Please sign in to comment.