Skip to content

Commit 198f013

Browse files
committed
allow functions from pdb_dataset_curation to be exported
1 parent 8f22c88 commit 198f013

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can chat with other researchers about this work <a href="https://discord.gg/
1616

1717
- <a href="https://github.com/gitabtion">Heng</a> for pointing out inconsistencies with the paper and pull requesting the solutions
1818

19+
- <a href="https://github.com/amorehead">Alex</a> for the PDB dataset preparation script!
20+
1921
- <a href="https://github.com/patrick-kidger">Patrick</a> for <a href="https://docs.kidger.site/jaxtyping/">jaxtyping</a>, <a href="https://github.com/fferflo">Florian</a> for <a href="https://github.com/fferflo/einx">einx</a>, and of course, <a href="https://github.com/arogozhnikov">Alex</a> for <a href="https://einops.rocks/">einops</a>
2022

2123
## Install

alphafold3_pytorch/pdb_dataset_curation.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,13 @@ def process_structure(args: Tuple[str, str, bool]):
746746
print(f"Skipping structure processing of {filepath} due to: {e}")
747747

748748

749-
# Process structures across all worker processes
750-
751-
args_tuples = [
752-
(filepath, args.output_dir, args.skip_existing)
753-
for filepath in glob.glob(os.path.join(args.mmcif_dir, "*", "*.cif"))
754-
]
755-
process_map(
756-
process_structure, args_tuples, max_workers=args.num_workers, chunksize=args.worker_chunk_size
757-
)
749+
if __name__ == '__main__':
750+
# Process structures across all worker processes
751+
752+
args_tuples = [
753+
(filepath, args.output_dir, args.skip_existing)
754+
for filepath in glob.glob(os.path.join(args.mmcif_dir, "*", "*.cif"))
755+
]
756+
process_map(
757+
process_structure, args_tuples, max_workers=args.num_workers, chunksize=args.worker_chunk_size
758+
)

0 commit comments

Comments
 (0)