From 6961781599931b0a4bd5336e7c9c224b9a5bbcd0 Mon Sep 17 00:00:00 2001 From: wenkai Date: Tue, 21 Apr 2020 21:07:47 +0800 Subject: [PATCH] fix incorrect count. count now not contain invalid number --- mindinsight/datavisual/data_transform/histogram_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindinsight/datavisual/data_transform/histogram_container.py b/mindinsight/datavisual/data_transform/histogram_container.py index c5478ee..a3e55f6 100644 --- a/mindinsight/datavisual/data_transform/histogram_container.py +++ b/mindinsight/datavisual/data_transform/histogram_container.py @@ -42,7 +42,7 @@ class HistogramContainer: self._visual_min = self._min # default bin number self._visual_bins = 10 - self._count = self._msg.count + self._count = sum(bucket[2] for bucket in self._original_buckets) # Note that tuple is immutable, so sharing tuple is often safe. self._re_sampled_buckets = self._original_buckets -- GitLab