Closed henryiii closed 1 year ago
Interesting, Assertion failed: (iter_ < indices_.hist_->end()), function operator++, file indexed.hpp, line 258.
is produced when you try to do an inner sum over this if you remove the growth on the category. Ideally this should return 0 in the correct (storage dependent) type, but the assertion is better than the segfault.
indexed iteration is broken when the last axis has size 0. Work on fixing this started in #356
If you mix an empty categorical axes with a fairly normal axis (one that is not another similar categorical axes either empty or not - that seems to be okay), you get a segfault when trying to check the inner sum.
Discovery via default repr in Hist in https://github.com/scikit-hep/hist/issues/337, also affects boost-histogram (both have the same default repr) and sums on Boost.Histogram.