Skip to content

Commit

Permalink
Rename mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5424 committed Nov 16, 2021
1 parent 387b556 commit ddf73e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autogabi/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,17 @@ def perform_cna(self, mode="IntervalCutoff", cutoff=3.2):
from ovito.plugins.ParticlesPython import CommonNeighborAnalysisModifier

if mode == "IntervalCutoff":
m = CommonNeighborAnalysisModifier.Mode.IntervalCutoff
cna_mode = CommonNeighborAnalysisModifier.Mode.IntervalCutoff
elif mode == "AdaptiveCutoff":
m = CommonNeighborAnalysisModifier.Mode.AdaptiveCutoff
cna_mode = CommonNeighborAnalysisModifier.Mode.AdaptiveCutoff
elif mode == "FixedCutoff":
m = CommonNeighborAnalysisModifier.Mode.FixedCutoff
cna_mode = CommonNeighborAnalysisModifier.Mode.FixedCutoff
elif mode == "BondBased":
m = CommonNeighborAnalysisModifier.Mode.BondBased
cna_mode = CommonNeighborAnalysisModifier.Mode.BondBased
else:
print("Selected CNA Mode unknown.")
sys.exit(1)
cna = CommonNeighborAnalysisModifier(mode=m, cutoff=cutoff)
cna = CommonNeighborAnalysisModifier(mode=cna_mode, cutoff=cutoff)
self.pipeline.modifiers.append(cna)

def perform_voroni_analysis(self):
Expand Down

0 comments on commit ddf73e6

Please sign in to comment.