Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanaba authored Nov 10, 2022
1 parent 08143a5 commit ac5591f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImmuneBuilder/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def forward(self, node_features, sequence):

# Remove atoms of side chains with outrageous clashes
ds = torch.linalg.norm(all_atoms[None,:,None] - all_atoms[:,None,:,None], axis = -1)
ds[torch.isnan(ds!=ds) | (ds==0.0)] = 10
ds[torch.isnan(ds) | (ds==0.0)] = 10
min_ds = ds.min(dim=-1)[0].min(dim=-1)[0].min(dim=-1)[0]
all_atoms[min_ds < 0.2, 5:, :] = float("Nan")

Expand Down

0 comments on commit ac5591f

Please sign in to comment.