Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dvadym committed Sep 6, 2024
1 parent 23846ab commit 8b70a4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipeline_dp/dataset_histograms/computing_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8b70a4a

Please sign in to comment.