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.


Messages - x.he

Pages: [1]
1
Support Forum / Re: error in "NeighborMode.Bonded" in cluster analysis
« on: April 09, 2019, 02:42:04 PM »
Dear Constanze,

Many thanks for support. It is working and that's I need.

xinhe

2
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]