MCPcopy Create free account
hub / github.com/boostorg/histogram / histogram_at

Function histogram_at

src/python/histogram.cpp:305–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bp::object histogram_at(bp::tuple args, bp::dict kwargs) {
306 if (kwargs) { throw std::invalid_argument("no keyword arguments allowed"); }
307 const pyhistogram& self = bp::extract<const pyhistogram&>(args[0]);
308
309 bp::object a = args.slice(1, bp::_);
310 return histogram_getitem(self, bp::extract<bp::tuple>(a));
311}
312
313bp::object histogram_reduce_to(bp::tuple args, bp::dict kwargs) {
314 if (kwargs) { throw std::invalid_argument("no keyword arguments allowed"); }

Callers

nothing calls this directly

Calls 1

histogram_getitemFunction · 0.85

Tested by

no test coverage detected