From 8a3b29c954b7c38a7bdbaef17a5e2a5209fd2758 Mon Sep 17 00:00:00 2001 From: Fischer Robert Date: Tue, 27 Sep 2022 11:02:29 +0200 Subject: [PATCH] bug fix all timesteps --- 01_extract_surfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01_extract_surfaces.py b/01_extract_surfaces.py index ef2a757..768379a 100644 --- a/01_extract_surfaces.py +++ b/01_extract_surfaces.py @@ -93,7 +93,7 @@ class mesh_maker: # make all the other stls if called if self.timesteps is not None: - if self.timesteps.any() == 'all': + if self.timesteps == 'all': steps = np.arange(len(self.dyn_data['time'])) else: steps = self.timesteps @@ -119,7 +119,7 @@ class mesh_maker: # make all the other stls if called if self.timesteps is not None: - if self.timesteps.any() == 'all': + if self.timesteps == 'all': steps = np.arange(len(self.dyn_data['time'])) else: steps = self.timesteps