From 909ca7569d25ef57452b954b8b00abe98cbef697 Mon Sep 17 00:00:00 2001 From: RobBuchananCompPhys Date: Wed, 18 Dec 2024 16:34:43 +0000 Subject: [PATCH] cleaner array initialisation --- MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py b/MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py index b4412c4f5..f956b2940 100644 --- a/MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py +++ b/MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py @@ -105,13 +105,7 @@ def initialize(self): self._selected_atoms.append(self._atoms[idx]) self._selected_atoms = AtomGroup(self._selected_atoms) - self.atomic_trajectory_array = np.zeros_like( - np.zeros(3*len(self._atoms)*len(self.configuration["frames"]["value"])).reshape(( - len(self._atoms), - 3, - len(self.configuration["frames"]["value"]) - )) - ) + self.atomic_trajectory_array = np.zeros((len(self._atoms), 3, len(self.configuration["frames"]["value"]))) def run_step(self, index): """