Added slices to CoordinatesMap

This commit is contained in:
Sebastian Kloth 2023-12-06 15:44:33 +01:00
parent 22287d167d
commit b4486ff265
2 changed files with 4 additions and 0 deletions

3
.gitignore vendored
View File

@ -14,3 +14,6 @@ doc/modules
tmp/
*.xtcindex
.spyproject/
.traj.xtc_offsets.lock
.traj.xtc_offsets.npz
*.npy

View File

@ -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: