From 5e807015623518303271a8f0c0d00140ceb54a89 Mon Sep 17 00:00:00 2001 From: Sebastian Kloth Date: Mon, 26 Feb 2024 13:50:46 +0100 Subject: [PATCH] Coordinates returns now correct length after slicing --- src/mdevaluate/coordinates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdevaluate/coordinates.py b/src/mdevaluate/coordinates.py index 6711508..722ca5b 100755 --- a/src/mdevaluate/coordinates.py +++ b/src/mdevaluate/coordinates.py @@ -232,7 +232,7 @@ class Coordinates: return sliced def __len__(self): - return len(self.frames) + return len(self.frames[self._slice]) def __checksum__(self): return checksum(self.frames, self.atom_filter, self._slice, self.mode)