File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -138,22 +138,22 @@ def get_diamond_structure_descriptors(
138
138
"IdentifyDiamond.counts.HEX_DIAMOND_SECOND_NEIGHBOR" : diamond_dict [
139
139
"hex diamond 2NN"
140
140
],
141
- "IdentifyDiamond.counts.OTHER" : diamond_dict ["others" ]
141
+ "IdentifyDiamond.counts.OTHER" : diamond_dict ["others" ],
142
142
}
143
143
elif mode == "numeric" :
144
144
if not ovito_compatibility :
145
145
return np .array (sys .atoms .structure )
146
146
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
+
149
149
elif mode == "str" :
150
150
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
+ )
152
154
else :
153
155
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 ]
157
157
)
158
158
else :
159
159
raise ValueError (
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ def ase_to_pyscal(structure: Atoms):
14
14
"""
15
15
import pyscal3 as pc
16
16
17
- sys = pc .System (structure , format = ' ase' )
17
+ sys = pc .System (structure , format = " ase" )
18
18
return sys
You can’t perform that action at this time.
0 commit comments