From e41258fb700616613edf6ea5c09e36895216e8e9 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:50:18 -0700 Subject: [PATCH] fix formatting --- src/BaseIO.hpp | 2 +- src/hdf5/HDF5IO.cpp | 7 ++++--- tests/testNWBFile.cpp | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BaseIO.hpp b/src/BaseIO.hpp index bdb7118c..0a48d227 100644 --- a/src/BaseIO.hpp +++ b/src/BaseIO.hpp @@ -257,7 +257,7 @@ class BaseIO * @return True if the file is in a modification mode, false otherwise. */ virtual bool canModifyObjects() = 0; - + /** * @brief Creates an extendable dataset with a given base data type, size, * chunking, and path. diff --git a/src/hdf5/HDF5IO.cpp b/src/hdf5/HDF5IO.cpp index eb7c355f..8a8ad5a0 100644 --- a/src/hdf5/HDF5IO.cpp +++ b/src/hdf5/HDF5IO.cpp @@ -402,14 +402,15 @@ bool HDF5IO::canModifyObjects() unsigned int intent; herr_t status = H5Fget_intent(this->file->getId(), &intent); if (status < 0) { - return false; // We could not access the file so modifying objects is not going to work + return false; // We could not access the file so modifying objects is not + // going to work } // Check if SWMR mode is enabled if (intent & (H5F_ACC_SWMR_READ | H5F_ACC_SWMR_WRITE)) { - return false; // File is in SWMR mode + return false; // File is in SWMR mode } else { - return true; // File is not in SWMR mode + return true; // File is not in SWMR mode } return true; } diff --git a/tests/testNWBFile.cpp b/tests/testNWBFile.cpp index 3ad07f81..9f1fe658 100644 --- a/tests/testNWBFile.cpp +++ b/tests/testNWBFile.cpp @@ -82,12 +82,11 @@ TEST_CASE("setCanModifyObjectsMode", "[nwb]") nwbfile.finalize(); } - TEST_CASE("pauseRecording", "[nwb]") { std::string filename = getTestFilePath("testPauseRecording.nwb"); -// initialize nwbfile object and create base structure + // initialize nwbfile object and create base structure NWB::NWBFile nwbfile(generateUuid(), std::make_unique<HDF5::HDF5IO>(filename)); nwbfile.initialize();