Skip to content

Commit

Permalink
comment improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Apr 23, 2021
1 parent c07e0c3 commit b076f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cabinetry/template_postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ def _get_smoothing_algorithm(
if smoothing is None:
return None

# check for limited regions and samples for which to apply smoothing, apply to all
# check for region and sample restrictions specified for smoothing, apply to all
# regions and samples by default if no further specification is made
if not configuration._x_contains_y(region, smoothing, "Regions"):
# limited regions are specified and current region does not match, do not smooth
# regions are specified and current region does not match, do not smooth
return None

if not configuration._x_contains_y(sample, smoothing, "Samples"):
# limited samples are specified and current sample does not match, do not smooth
# samples are specified and current sample does not match, do not smooth
return None

# smoothing algorithm needs to be applied
Expand Down

0 comments on commit b076f50

Please sign in to comment.