From 8b70a4a4bac188c1fa84b8b420cdd23e58872945 Mon Sep 17 00:00:00 2001 From: Vadym Doroshenko Date: Fri, 6 Sep 2024 15:34:33 +0200 Subject: [PATCH] Addressing comments --- pipeline_dp/dataset_histograms/computing_histograms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipeline_dp/dataset_histograms/computing_histograms.py b/pipeline_dp/dataset_histograms/computing_histograms.py index 0b3b90c9..5b26e056 100644 --- a/pipeline_dp/dataset_histograms/computing_histograms.py +++ b/pipeline_dp/dataset_histograms/computing_histograms.py @@ -20,7 +20,7 @@ from pipeline_dp.dataset_histograms import histograms as hist from pipeline_dp.dataset_histograms import sum_histogram_computation -# Functions _compute_* computes histogram for counts. TODO: move them to +# Functions _compute_* compute histograms for counts. TODO: move them to # a separate file, similar to sum_histogram_computation.py. @@ -152,7 +152,8 @@ def _list_to_contribution_histograms( for histogram in histograms: if isinstance(histogram, Iterable): if not histogram: - # no histogram were computed, it can be if the dataset is empty + # no histograms were computed, this can happen if the dataset is + # empty continue histogram_type = histogram[0].name else: