Skip to content

Commit 93b54aa

Browse files
committed
Format black
1 parent 35be017 commit 93b54aa

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

structuretoolkit/analyse/pyscal.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,22 @@ def get_diamond_structure_descriptors(
138138
"IdentifyDiamond.counts.HEX_DIAMOND_SECOND_NEIGHBOR": diamond_dict[
139139
"hex diamond 2NN"
140140
],
141-
"IdentifyDiamond.counts.OTHER": diamond_dict["others"]
141+
"IdentifyDiamond.counts.OTHER": diamond_dict["others"],
142142
}
143143
elif mode == "numeric":
144144
if not ovito_compatibility:
145145
return np.array(sys.atoms.structure)
146146
else:
147-
return np.array([6 if x==0 else x-1 for x in sys.atoms.structure])
148-
147+
return np.array([6 if x == 0 else x - 1 for x in sys.atoms.structure])
148+
149149
elif mode == "str":
150150
if not ovito_compatibility:
151-
return np.array([pyscal_identifiers[structure] for structure in sys.atoms.structure])
151+
return np.array(
152+
[pyscal_identifiers[structure] for structure in sys.atoms.structure]
153+
)
152154
else:
153155
return np.array(
154-
[ovito_identifiers[structure]
155-
for structure in sys.atoms.structure
156-
]
156+
[ovito_identifiers[structure] for structure in sys.atoms.structure]
157157
)
158158
else:
159159
raise ValueError(

structuretoolkit/common/pyscal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ def ase_to_pyscal(structure: Atoms):
1414
"""
1515
import pyscal3 as pc
1616

17-
sys = pc.System(structure, format='ase')
17+
sys = pc.System(structure, format="ase")
1818
return sys

0 commit comments

Comments
 (0)