Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored Jul 17, 2023
1 parent eba5598 commit c001757
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/binding/python/Container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* BSD-style license, see pybind11 LICENSE file.
*/

#include <cstddef>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
Expand All @@ -42,6 +41,7 @@
#include "openPMD/backend/PatchRecord.hpp"
#include "openPMD/backend/PatchRecordComponent.hpp"

#include <cstddef>
#include <memory>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -114,7 +114,7 @@ bind_container(py::handle scope, std::string const &name, Args &&...args)
stream << num_entries << " entries and ";
}

stream << m.numAttributes() << " attribute(s).>";
stream << m.numAttributes() << " attribute(s)>";
return stream.str();
});

Expand Down
2 changes: 1 addition & 1 deletion src/binding/python/Dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void init_Dataset(py::module &m)
[](const Dataset &d) {
std::stringstream stream;
stream << "<openPMD.Dataset of type '" << d.dtype
<< " and with extent ";
<< "' and with extent ";
if (d.extent.empty())
{
stream << "[]>";
Expand Down
2 changes: 1 addition & 1 deletion src/binding/python/Iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void init_Iteration(py::module &m)
std::stringstream ss;
ss << "<openPMD.Iteration at t = '" << std::scientific
<< it.template time<double>() * it.timeUnitSI()
<< " s' with " << std::to_string(it.numAttributes())
<< " s' with " << std::to_string(it.numAttributes())
<< " attributes>";
return ss.str();
})
Expand Down
2 changes: 1 addition & 1 deletion src/binding/python/MeshRecordComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void init_MeshRecordComponent(py::module &m)
[](RecordComponent const &rc) {
std::stringstream stream;
stream << "<openPMD.Record_Component of type '"
<< rc.getDatatype() << " and with extent ";
<< rc.getDatatype() << "' and with extent ";
if (auto extent = rc.getExtent(); extent.empty())
{
stream << "[]>";
Expand Down
2 changes: 1 addition & 1 deletion src/binding/python/PatchRecordComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void init_PatchRecordComponent(py::module &m)
[](PatchRecordComponent const &rc) {
std::stringstream stream;
stream << "<openPMD.Patch_Record_Component of type '"
<< rc.getDatatype() << " and with extent ";
<< rc.getDatatype() << "' and with extent ";
if (auto extent = rc.getExtent(); extent.empty())
{
stream << "[]>";
Expand Down
2 changes: 1 addition & 1 deletion src/binding/python/RecordComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void init_RecordComponent(py::module &m)
[](RecordComponent const &rc) {
std::stringstream stream;
stream << "<openPMD.Record_Component of type '"
<< rc.getDatatype() << " and with extent ";
<< rc.getDatatype() << "' and with extent ";
if (auto extent = rc.getExtent(); extent.empty())
{
stream << "[]>";
Expand Down

0 comments on commit c001757

Please sign in to comment.