Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def analyse_ovito_centro_symmetry(atoms, num_neighbors=12):
"""
Args:
atoms:
num_neighbors:
Returns:
"""
s.publication_add(publication())
data = DataCollection.create_from_ase_atoms(atoms.copy())
node = ObjectNode()
node.source = data
node.modifiers.append(CentroSymmetryModifier(num_neighbors = num_neighbors))
output = node.compute()
return output.particle_properties['Centrosymmetry'].array