Commit 36e7df39 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Adding python __str__ to buffer class



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent f9037a56
......@@ -335,6 +335,12 @@ PYBIND11_MODULE(_pyxacc, m) {
return s.str();
},
"")
.def("__str__", [](const std::shared_ptr<AcceleratorBuffer> b) {
std::stringstream s;
b->print(s);
return s.str();
},
"")
.def("getChildren",
(std::vector<std::shared_ptr<AcceleratorBuffer>>(
xacc::AcceleratorBuffer::*)(const std::string, ExtraInfo)) &
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment