Skip to content

Commit

Permalink
Fix impute when output_mapping is not empty (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
zye1996 authored Oct 7, 2024
1 parent d5c0484 commit 4b8903b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/distilabel/steps/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def impute_step_outputs(
result = []
for row in step_output:
data = row.copy()
for output in self.outputs:
for output in self.get_outputs().keys():
data[output] = None
result.append(data)
return result
Expand Down
2 changes: 1 addition & 1 deletion src/distilabel/steps/tasks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def impute_step_outputs(
result = []
for row in step_output:
data = row.copy()
for output in self.outputs:
for output in self.get_outputs().keys():
data[output] = None
data = self._maybe_add_raw_input_output(
data,
Expand Down

0 comments on commit 4b8903b

Please sign in to comment.