| 126 | } |
| 127 | |
| 128 | inline pybind11::dict FieldDataMapToPyDict(const std::map<std::string, FieldData>& data) { |
| 129 | pybind11::dict d; |
| 130 | for (auto& kv : data) { |
| 131 | d[kv.first.c_str()] = FieldDataToPyObj(kv.second); |
| 132 | } |
| 133 | return d; |
| 134 | } |
| 135 | |
| 136 | void register_python_api(pybind11::module& m) { |
| 137 | //====================================== |
no test coverage detected