Skip to content

Commit c8dc54c

Browse files
committed
fix types on molecule length input
1 parent 8baeb9a commit c8dc54c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

alphafold3_pytorch/inputs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ class BatchedAtomInput:
503503
resolution: Float[" b"] | None = None # type: ignore
504504
token_constraints: Float["b n n dac"] | None = None # type: ignore
505505
chains: Int["b 2"] | None = None # type: ignore
506-
filepath: List[str] | None = None
506+
filepath: List[str] | Tuple[str, ...] | None = None
507507

508508
def dict(self):
509509
"""Return the dataclass as a dictionary."""
@@ -736,11 +736,11 @@ class MoleculeInput:
736736
molecule_ids: Int[" n"] # type: ignore
737737
additional_molecule_feats: Int[f"n {ADDITIONAL_MOLECULE_FEATS}"] # type: ignore
738738
is_molecule_types: Bool[f"n {IS_MOLECULE_TYPES}"] # type: ignore
739-
src_tgt_atom_indices: Int["n 2"] # type: ignore
739+
src_tgt_atom_indices: Int["n 2"] | List[List[int]] # type: ignore
740740
token_bonds: Bool["n n"] # type: ignore
741741
is_molecule_mod: Bool["n num_mods"] | Bool[" n"] | None = None # type: ignore
742-
molecule_atom_indices: List[int | None] | None = None # type: ignore
743-
distogram_atom_indices: List[int | None] | None = None # type: ignore
742+
molecule_atom_indices: List[int | None] | Int[" n"] | None = None # type: ignore
743+
distogram_atom_indices: List[int | None] | Int[" n"] | None = None # type: ignore
744744
atom_indices_for_frame: Int["n 3"] | None = None # type: ignore
745745
missing_atom_indices: List[Int[" _"] | None] | None = None # type: ignore
746746
missing_token_indices: List[Int[" _"] | None] | None = None # type: ignore
@@ -1085,8 +1085,8 @@ class MoleculeLengthMoleculeInput:
10851085
token_bonds: Bool["n n"] | None = None # type: ignore
10861086
one_token_per_atom: List[bool] | None = None
10871087
is_molecule_mod: Bool["n num_mods"] | Bool[" n"] | None = None # type: ignore
1088-
molecule_atom_indices: List[int | None] | None = None
1089-
distogram_atom_indices: List[int | None] | None = None
1088+
molecule_atom_indices: List[int | None] | Int[" n"] | None = None
1089+
distogram_atom_indices: List[int | None] | Int[" n"] | None = None
10901090
atom_indices_for_frame: List[Tuple[int, int, int] | None] | None = None
10911091
missing_atom_indices: List[Int[" _"] | None] | None = None # type: ignore
10921092
missing_token_indices: List[Int[" _"] | None] | None = None # type: ignore

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

0 commit comments

Comments
 (0)