Skip to content

Commit a63d52a

Browse files
committed
Revert "tmp: try sth"
This reverts commit bc1817d.
1 parent bc1817d commit a63d52a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/binding/python/Attributable.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,14 @@ void init_Attributable(py::module &m)
614614
// double, 7 > >)
615615

616616
// C++ pass-through API: Getter
617-
// .def(
618-
// "get_attribute",
619-
// [](Attributable &attr, std::string const &key) {
620-
// auto v = attr.getAttribute(key);
621-
// return v.getVariant<attribute_types>();
622-
// // TODO instead of returning lists, return all arrays (ndim >
623-
// 0)
624-
// // as numpy arrays?
625-
// })
617+
.def(
618+
"get_attribute",
619+
[](Attributable &attr, std::string const &key) {
620+
auto v = attr.getAttribute(key);
621+
return v.getVariant<attribute_types>();
622+
// TODO instead of returning lists, return all arrays (ndim > 0)
623+
// as numpy arrays?
624+
})
626625
.def_property_readonly(
627626
"attribute_dtypes",
628627
[](Attributable const &attributable) {

0 commit comments

Comments
 (0)