Coordinates returns now correct length after slicing

This commit is contained in:
Sebastian Kloth 2024-02-26 13:50:46 +01:00
parent 363e420cd8
commit 5e80701562

View File

@ -232,7 +232,7 @@ class Coordinates:
return sliced return sliced
def __len__(self): def __len__(self):
return len(self.frames) return len(self.frames[self._slice])
def __checksum__(self): def __checksum__(self):
return checksum(self.frames, self.atom_filter, self._slice, self.mode) return checksum(self.frames, self.atom_filter, self._slice, self.mode)