Skip to content

Commit e737749

Browse files
fixing the generation vs _full_generation difference
Signed-off-by: Rima Shahbazyan <[email protected]>
1 parent a1b913f commit e737749

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes/opensciencereasoning/scripts/SDG_pipeline/aggregate_solutions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def aggregate_samples(files: Iterable[Path]) -> List[Dict]:
5050
with open(file_path) as fin:
5151
for line in fin:
5252
sample = json.loads(line)
53-
53+
if "_full_generation" in sample:
54+
sample["generation"] = sample.pop("_full_generation")
5455
sample = {
5556
key: value
5657
for key, value in sample.items()

0 commit comments

Comments
 (0)