Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions eval_protocol/pytest/evaluation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,7 @@ def _log_eval_error(status: Status, rows: list[EvaluationRow] | None, passed: bo
apply preprocess_fn.
"""
if preprocess_fn:
if not data_loaders:
data = preprocess_fn(data)
else:
raise ValueError(
"preprocess_fn should not be used with data_loaders. Pass preprocess_fn to data_loaders instead."
)
data = preprocess_fn(data)

for row in data:
# generate a stable row_id for each row
Expand Down