Skip to content

Commit

Permalink
reformatting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiCheng45 committed Jan 15, 2024
1 parent 83e99c2 commit af41e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions MDANSE/Src/MDANSE/Framework/Jobs/IJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def run(self, parameters, status=False):
"""

try:
self._name = "%s_%s" % (
self.__class__.__name__, IJob.define_unique_name())
self._name = "%s_%s" % (self.__class__.__name__, IJob.define_unique_name())

if status and self._status is None:
self._status = self._status_constructor(self)
Expand Down
3 changes: 1 addition & 2 deletions MDANSE/Src/MDANSE/Framework/Selectors/Macromolecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ def select(self, macromolecules):
m = Macromolecule.lookup.get(ce.__class__, None)
if m in macromolecules:
sel.update([at for at in ce.atom_list])
if (isinstance(ce, Protein)
and "peptide_chain" in macromolecules):
if isinstance(ce, Protein) and "peptide_chain" in macromolecules:
for ce2 in ce.peptide_chains:
m = Macromolecule.lookup.get(ce2.__class__, None)
if m in macromolecules:
Expand Down

0 comments on commit af41e0d

Please sign in to comment.