Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - x.he

Pages: [1]
1
Support Forum / error in "NeighborMode.Bonded" in cluster analysis
« on: April 09, 2019, 10:13:41 AM »
Dear everyone,

I want to perform cluster analysis by Python script. But when I set "neighbor_mode=ClusterAnalysisModifier.NeighborMode.Bonded", I got an error message:"ovito.plugins.Particles.Modifiers.NeighborMode' has no attribute 'Bonded' ".

The "NeighborMode.CutoffRange" does work。

the following is the code:

cluster=ClusterAnalysisModifier()
cluster.neighbor_mode=ClusterAnalysisModifier.NeighborMode.Bonded
node.modifiers.append(cluster)

error message:
AttributeError: type object 'ovito.plugins.Particles.Modifiers.NeighborMode' has no attribute 'Bonded'

Please help me to solove this problem??

Pages: [1]