MCPcopy Create free account
hub / github.com/boostorg/histogram / category<>>

Method category<>>

src/python/axis.cpp:154–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153template <>
154bp::object axis_getitem<bha::category<>>(const bha::category<>& a, int i) {
155 if (i < 0 || i >= a.size()) throw std::out_of_range("index out of bounds");
156 return bp::object(a.value(i));
157}
158
159#ifdef HAVE_NUMPY
160template <typename Axis>

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected