Skip to content

Commit 2b826e6

Browse files
committed
lint
1 parent d26005b commit 2b826e6

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,8 +3053,8 @@ def __init__(
30533053
@typecheck
30543054
def _calculate_bin_centers(
30553055
self,
3056-
breaks: Float['breaks'],
3057-
) -> Float['breaks+1']:
3056+
breaks: Float[' breaks'],
3057+
) -> Float[' breaks+1']:
30583058
"""
30593059
Args:
30603060
breaks: [num_bins -1] bin edges
@@ -3083,7 +3083,6 @@ def forward(
30833083
ptm_residue_weight: Float['b n'] | None = None,
30843084
multimer_mode: bool=True,
30853085
):
3086-
device = asym_id.device
30873086
plddt = self.compute_plddt(confidence_head_logits.plddt)
30883087

30893088
# Section 5.9.1 equation 17
@@ -3123,9 +3122,6 @@ def compute_ptm(
31233122
interface: bool = False,
31243123
compute_chain_wise_iptm: bool = False,
31253124
):
3126-
3127-
device = logits.device
3128-
31293125
if not exists(residue_weights):
31303126
residue_weights = torch.ones_like(has_frame)
31313127

alphafold3_pytorch/inputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
)
3939
from alphafold3_pytorch.data import mmcif_parsing
4040
from alphafold3_pytorch.data.data_pipeline import get_assembly
41+
from alphafold3_pytorch.data.weighted_pdb_sampler import WeightedPDBSampler
4142

4243
from alphafold3_pytorch.life import (
4344
ATOM_BONDS,

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

0 commit comments

Comments
 (0)