Skip to content

Commit

Permalink
ruff fix test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranavkhade committed Jun 29, 2024
1 parent 3885204 commit 519d5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packman/apps/dci.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DCI():

def __init__(self, mol, cutoff = 7.0, chain = None, n_com = None):
self.molObj = mol
assert type( self.molObj ) == Protein, "mol should be a packman.molecule.Protein object."
assert isinstance(self.molObj, Protein) == True, "mol should be a packman.molecule.Protein object."

Check failure on line 45 in packman/apps/dci.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E712)

packman/apps/dci.py:45:16: E712 Avoid equality comparisons to `True`; use `if isinstance(self.molObj, Protein):` for truth checks

if chain:
self.atoms = [i for i in self.molObj[0][chain].get_calpha()]
Expand Down

0 comments on commit 519d5dd

Please sign in to comment.