Skip to content

Commit

Permalink
Merge branch 'master' into tagdataset/add-llm-exp-pred
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuohz authored Jan 10, 2025
2 parents ac402f3 + ef02854 commit ac7bfed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch_geometric/datasets/molecule_gpt_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ def extract_one_SDF_file(block_id: int) -> None:
writer.write(mol)
valid_mol_count += 1

writer.close()
print(f"block id: {block_id}\nfound {valid_mol_count}\n\n")
sys.stdout.flush()
return
Expand Down Expand Up @@ -410,6 +411,7 @@ def extract_one_SDF_file(block_id: int) -> None:
print(f"block id: {block_id} with 0 valid SDF file")
continue

writer.close()
print(f"In total: {len(found_CID_set)} molecules")

# Step 05. Convert to PyG data format
Expand Down

0 comments on commit ac7bfed

Please sign in to comment.