Skip to content

Commit

Permalink
cleaner array initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBuchananCompPhys committed Dec 18, 2024
1 parent c20274b commit 909ca75
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions MDANSE/Src/MDANSE/Framework/Jobs/TrajectoryFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 909ca75

Please sign in to comment.