Skip to content

Commit

Permalink
skip init for tasks without dataset_inst attr
Browse files Browse the repository at this point in the history
  • Loading branch information
haddadanas committed Nov 6, 2024
1 parent 88c4f2f commit 15459d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions columnflow/production/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ def normalization_weights_init(self: Producer) -> None:
"""
Initializes the normalization weights producer by setting up the normalization weight column.
"""
if getattr(self, "dataset_inst", None) is None:
return

self.produces.add(self.weight_name)
if self.allow_stitching:
self.stitching_datasets = self.get_stitching_datasets()
Expand Down

0 comments on commit 15459d1

Please sign in to comment.