Skip to content

Commit 12601f0

Browse files
committed
address #232
1 parent beaeeb0 commit 12601f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

alphafold3_pytorch/inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def molecule_to_atom_input(mol_input: MoleculeInput) -> AtomInput:
673673

674674
asym_ids = i.additional_molecule_feats[..., 2]
675675
asym_ids = F.pad(asym_ids, (1, 0), value=-1)
676-
is_first_mol_in_chains = (asym_ids[1:] - asym_ids[:-1]) == 1
676+
is_first_mol_in_chains = (asym_ids[1:] - asym_ids[:-1]) != 0
677677

678678
is_chainable_biomolecules = i.is_molecule_types[..., IS_BIOMOLECULE_INDICES].any(dim=-1)
679679

@@ -956,7 +956,7 @@ def molecule_lengthed_molecule_input_to_atom_input(
956956

957957
asym_ids = i.additional_molecule_feats[..., 2]
958958
asym_ids = F.pad(asym_ids, (1, 0), value=-1)
959-
is_first_mol_in_chains = (asym_ids[1:] - asym_ids[:-1]) == 1
959+
is_first_mol_in_chains = (asym_ids[1:] - asym_ids[:-1]) != 0
960960
is_chainable_biomolecules = i.is_molecule_types[..., IS_BIOMOLECULE_INDICES].any(dim=-1)
961961

962962
# repeat all the molecule lengths to the token lengths, using `one_token_per_atom`

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.4.48"
3+
version = "0.4.49"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" },

0 commit comments

Comments
 (0)