Skip to content

Commit 70b70cb

Browse files
committed
add
1 parent 5468710 commit 70b70cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

eval_protocol/data_loader/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _process_variant(self, result: DataLoaderResult) -> DataLoaderResult:
111111

112112
def _apply_metadata(self, result: DataLoaderResult, original_count: int, processed_count: int) -> None:
113113
"""Apply metadata to all rows in the result."""
114-
for row in result.rows:
114+
for idx, row in enumerate(result.rows):
115115
if row.input_metadata.dataset_info is None:
116116
row.input_metadata.dataset_info = {}
117117

@@ -126,3 +126,4 @@ def _apply_metadata(self, result: DataLoaderResult, original_count: int, process
126126
# Apply row counts
127127
row.input_metadata.dataset_info["data_loader_num_rows"] = original_count
128128
row.input_metadata.dataset_info["data_loader_num_rows_after_preprocessing"] = processed_count
129+
row.input_metadata.dataset_info["data_loader_row_idx"] = idx

0 commit comments

Comments
 (0)