Skip to content

Commit c1e77d7

Browse files
committed
More Docstrings
1 parent 90a106f commit c1e77d7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/Base/PODVector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void make_PODVector(py::module &m, std::string typestr, std::string allocstr)
6363
.def(py::init<PODVector_type&>(), py::arg("other"))
6464
.def("assign", [](PODVector_type & pv, T const & value){
6565
pv.assign(pv.size(), value);
66-
}, py::arg("value"))
66+
}, py::arg("value"), "assign the same value to every element")
6767
.def("push_back", py::overload_cast<const T&>(&PODVector_type::push_back))
6868
.def("pop_back", &PODVector_type::pop_back)
6969
.def("clear", &PODVector_type::clear)

src/Particle/ParticleContainer.H

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,16 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
203203

204204
// runtime components
205205
.def("add_real_comp", &ParticleContainerType::template AddRealComp<bool>,
206-
py::arg("communicate")=true)
206+
py::arg("communicate")=true, "add a new runtime component with type Real")
207207
.def("add_int_comp", &ParticleContainerType::template AddIntComp<bool>,
208-
py::arg("communicate")=true)
208+
py::arg("communicate")=true, "add a new runtime component with type Int")
209209

210210
.def("resize_runtime_real_comp", &ParticleContainerType::ResizeRuntimeRealComp,
211-
py::arg("new_size"), py::arg("communicate"))
211+
py::arg("new_size"), py::arg("communicate"),
212+
"Resize the Real runtime components (SoA)")
212213
.def("resize_runtime_int_comp", &ParticleContainerType::ResizeRuntimeIntComp,
213-
py::arg("new_size"), py::arg("communicate"))
214+
py::arg("new_size"), py::arg("communicate"),
215+
"Resize the Int runtime components (SoA)")
214216

215217
.def_property_readonly("finest_level", &ParticleContainerBase::finestLevel)
216218

0 commit comments

Comments
 (0)