| 138 | }; |
| 139 | |
| 140 | bp::object histogram_axis(const pyhistogram& self, int i) { |
| 141 | if (i < 0) i += self.dim(); |
| 142 | if (i < 0 || i >= int(self.dim())) throw std::out_of_range("axis index out of range"); |
| 143 | return boost::apply_visitor(axis_visitor(), self.axis(i)); |
| 144 | } |
| 145 | |
| 146 | bp::object histogram_init(bp::tuple args, bp::dict kwargs) { |
| 147 |
nothing calls this directly
no test coverage detected