Skip to content

Commit

Permalink
Prettier code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wukevin committed Dec 9, 2024
1 parent 9d776b9 commit f735d8b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions chai_lab/data/dataset/structure/all_atom_structure_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ def drop_leaving_atoms(self) -> None:
bonds_b = [
candidate
for candidate in bond_candidates_b.tolist()
if self._infer_bonds_within_conformer(
candidate, exclude_polymers=True
).sum()
== 1
if (
self._infer_bonds_within_conformer(
candidate, exclude_polymers=True
).sum()
== 1
)
]
# If there are multiple such bonds, we can't infer which to drop
if len(bonds_b) == 1:
Expand All @@ -195,10 +197,12 @@ def drop_leaving_atoms(self) -> None:
bonds_a = [
candidate
for candidate in bond_candidates_a.tolist()
if self._infer_bonds_within_conformer(
candidate, exclude_polymers=True
).sum()
== 1
if (
self._infer_bonds_within_conformer(
candidate, exclude_polymers=True
).sum()
== 1
)
]
# If there are multiple such bonds, we can't infer which to drop
if len(bonds_a) == 1:
Expand Down

0 comments on commit f735d8b

Please sign in to comment.