From b4486ff26528f0cc521e38c5457718b857bd9c72 Mon Sep 17 00:00:00 2001 From: Sebastian Kloth Date: Wed, 6 Dec 2023 15:44:33 +0100 Subject: [PATCH] Added slices to CoordinatesMap --- .gitignore | 3 +++ mdevaluate/coordinates.py | 1 + 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index ed3ff7b..df08524 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ doc/modules tmp/ *.xtcindex .spyproject/ +.traj.xtc_offsets.lock +.traj.xtc_offsets.npz +*.npy \ No newline at end of file diff --git a/mdevaluate/coordinates.py b/mdevaluate/coordinates.py index c976e2d..6cabe0a 100755 --- a/mdevaluate/coordinates.py +++ b/mdevaluate/coordinates.py @@ -362,6 +362,7 @@ class CoordinatesMap: self.frames = self.coordinates.frames self.atom_subset = self.coordinates.atom_subset self.function = function + self._slice = slice(None) if isinstance(function, partial): self._description = self.function.func.__name__ else: