Skip to content

Commit f1cabc2

Browse files
committed
fix some test for now for multi_chain_permutation
1 parent 3e5c7a1 commit f1cabc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,8 +2753,8 @@ def forward(
27532753
pairwise_trunk: Float['b n n dpt'],
27542754
pairwise_rel_pos_feats: Float['b n n dpr'],
27552755
molecule_atom_lens: Int['b n'],
2756-
molecule_atom_indices: Int['b n'],
27572756
token_bonds: Bool['b n n'],
2757+
molecule_atom_indices: Int['b n'] | None = None,
27582758
missing_atom_mask: Bool['b m'] | None = None,
27592759
atom_parent_ids: Int['b m'] | None = None,
27602760
return_denoised_pos = False,
@@ -2822,7 +2822,7 @@ def forward(
28222822

28232823
# section 4.2 - multi-chain permutation alignment
28242824

2825-
if single_structure_input:
2825+
if exists(molecule_atom_indices) and single_structure_input:
28262826
try:
28272827
atom_pos_aligned_ground_truth = self.multi_chain_permutation_alignment(
28282828
pred_coords=denoised_atom_pos,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" },

0 commit comments

Comments
 (0)