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 16, 2024
1 parent 8d42525 commit 92ca944
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions MDANSE/Src/MDANSE/Chemistry/ChemicalEntity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,9 @@ def build(
mol = cls(code, name)
contents = h5_contents["atoms"]

names = [literal_eval(contents[index][1].decode("utf8")) for index in atom_indexes]
names = [
literal_eval(contents[index][1].decode("utf8")) for index in atom_indexes
]

mol.reorder_atoms(names)

Expand Down Expand Up @@ -1307,7 +1309,10 @@ def build(
"""
res = cls(code, name, variant)

names = [literal_eval(h5_contents["atoms"][index][1].decode("utf8")) for index in atom_indexes]
names = [
literal_eval(h5_contents["atoms"][index][1].decode("utf8"))
for index in atom_indexes
]
res.set_atoms(names)

return res
Expand Down Expand Up @@ -1532,7 +1537,10 @@ def build(
"""
nucl = cls(code, name, variant)

names = [literal_eval(h5_contents["atoms"][index][1].decode("utf8")) for index in atom_indexes]
names = [
literal_eval(h5_contents["atoms"][index][1].decode("utf8"))
for index in atom_indexes
]
nucl.set_atoms(names)

return nucl
Expand Down

0 comments on commit 92ca944

Please sign in to comment.