From 08ba5c39c4fd9013de61419a784ea198048fb874 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Mon, 16 Jul 2018 00:42:31 +0200 Subject: [PATCH] fixed missing adaptation in python interface --- src/python/histogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/histogram.cpp b/src/python/histogram.cpp index f5f3d838..6319ac50 100644 --- a/src/python/histogram.cpp +++ b/src/python/histogram.cpp @@ -415,7 +415,7 @@ void register_histogram() { "\nIf Numpy support is enabled, 1d-arrays can be passed instead of" "\nvalues, which must be equal in lenght. Arrays and values can" "\nbe mixed arbitrarily in the same call.") - .add_property("bincount", &pyhistogram::bincount, + .def("__len__", &pyhistogram::size, ":return: total number of bins, including under- and overflow") .def("at", bp::raw_function(histogram_at), ":param int args: indices of the bin (number must match dimension)"