Skip to content

Commit 9762c22

Browse files
committed
Add Python binding for openPMD_path
1 parent 3daa2f4 commit 9762c22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/binding/python/Attributable.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ void init_Attributable(py::module &m)
502502
"series_extension", &Attributable::MyPath::seriesExtension)
503503
.def_readonly("group", &Attributable::MyPath::group)
504504
.def_readonly("access", &Attributable::MyPath::access)
505-
.def_property_readonly("file_path", &Attributable::MyPath::filePath);
505+
.def_property_readonly("file_path", &Attributable::MyPath::filePath)
506+
.def_property_readonly(
507+
"openPMD_path", &Attributable::MyPath::openPMDPath);
506508

507509
py::class_<Attributable>(m, "Attributable")
508510
.def(py::init<Attributable const &>())

0 commit comments

Comments
 (0)