From 5ef7bc0942a217d00f755a0fac904ed0de0cbeb5 Mon Sep 17 00:00:00 2001 From: ab5424 Date: Tue, 16 Nov 2021 21:12:33 +0100 Subject: [PATCH] Change ovito imports --- autogabi/analysis.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autogabi/analysis.py b/autogabi/analysis.py index efa1d9e..ad2f141 100644 --- a/autogabi/analysis.py +++ b/autogabi/analysis.py @@ -54,10 +54,11 @@ def delete_particles(self, particle_type): Returns: """ if self.backend == "ovito": - from ovito.plugins.StdModPython import ( - SelectTypeModifier, - DeleteSelectedModifier, - ) + # from ovito.plugins.StdModPython import ( + # SelectTypeModifier, + # DeleteSelectedModifier, + # ) + from ovito.modifiers import SelectTypeModifier, DeleteSelectedModifier def assign_particle_types(frame, data): atom_types = data.particles_.particle_types_