We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556b7c2 commit d129e6fCopy full SHA for d129e6f
vsh/scripts/slab.py
@@ -73,13 +73,13 @@ def update_structure(
73
from sklearn.preprocessing import normalize
74
75
species = []
76
- if type(traj) == list:
+ if isinstance(traj, list):
77
for t in traj:
78
elements = np.unique(t.get_chemical_symbols())
79
for e in elements:
80
if e not in species:
81
species.append(e)
82
- elif type(traj) == Atoms:
+ elif isinstance(traj, Atoms):
83
elements = np.unique(traj.get_chemical_symbols())
84
85
0 commit comments