File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments