|
19 | 19 | * If not, see <http://www.gnu.org/licenses/>.
|
20 | 20 | */
|
21 | 21 |
|
| 22 | +#include <pybind11/detail/common.h> |
22 | 23 | #include <pybind11/pybind11.h>
|
23 | 24 | #include <pybind11/stl.h>
|
24 | 25 |
|
@@ -283,9 +284,23 @@ this method.
|
283 | 284 | &Series::setOpenPMDextension)
|
284 | 285 | .def_property("base_path", &Series::basePath, &Series::setBasePath)
|
285 | 286 | .def_property(
|
286 |
| - "meshes_path", &Series::meshesPath, &Series::setMeshesPath) |
| 287 | + "meshes_path", |
| 288 | + &Series::meshesPath, |
| 289 | + py::overload_cast<std::string const &>(&Series::setMeshesPath)) |
287 | 290 | .def_property(
|
288 |
| - "particles_path", &Series::particlesPath, &Series::setParticlesPath) |
| 291 | + "particles_path", |
| 292 | + &Series::particlesPath, |
| 293 | + py::overload_cast<std::string const &>(&Series::setParticlesPath)) |
| 294 | + .def_property( |
| 295 | + "meshes_paths", |
| 296 | + &Series::meshesPath, |
| 297 | + py::overload_cast<std::vector<std::string> const &>( |
| 298 | + &Series::setMeshesPath)) |
| 299 | + .def_property( |
| 300 | + "particles_paths", |
| 301 | + &Series::particlesPath, |
| 302 | + py::overload_cast<std::vector<std::string> const &>( |
| 303 | + &Series::setParticlesPath)) |
289 | 304 | .def_property("author", &Series::author, &Series::setAuthor)
|
290 | 305 | .def_property(
|
291 | 306 | "machine",
|
@@ -327,8 +342,20 @@ this method.
|
327 | 342 | .def("set_openPMD", &Series::setOpenPMD)
|
328 | 343 | .def("set_openPMD_extension", &Series::setOpenPMDextension)
|
329 | 344 | .def("set_base_path", &Series::setBasePath)
|
330 |
| - .def("set_meshes_path", &Series::setMeshesPath) |
331 |
| - .def("set_particles_path", &Series::setParticlesPath) |
| 345 | + .def( |
| 346 | + "set_meshes_path", |
| 347 | + py::overload_cast<std::string const &>(&Series::setMeshesPath)) |
| 348 | + .def( |
| 349 | + "set_meshes_path", |
| 350 | + py::overload_cast<std::vector<std::string> const &>( |
| 351 | + &Series::setMeshesPath)) |
| 352 | + .def( |
| 353 | + "set_particles_path", |
| 354 | + py::overload_cast<std::vector<std::string> const &>( |
| 355 | + &Series::setParticlesPath)) |
| 356 | + .def( |
| 357 | + "set_particles_path", |
| 358 | + py::overload_cast<std::string const &>(&Series::setParticlesPath)) |
332 | 359 | .def("set_author", &Series::setAuthor)
|
333 | 360 | .def("set_date", &Series::setDate)
|
334 | 361 | .def("set_iteration_encoding", &Series::setIterationEncoding)
|
|
0 commit comments