Skip to content

Commit 35912a3

Browse files
committed
Fix trajectory end index logic to ensure all frames are analyzed when end is -1
1 parent 9ea4806 commit 35912a3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

CodeEntropy/entropy.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,7 @@ def _get_trajectory_bounds(self):
247247
Tuple of (start, end, step) frame indices.
248248
"""
249249
start = self._args.start or 0
250-
end = (
251-
len(self._universe.trajectory) - 1
252-
if self._args.end == -1
253-
else self._args.end
254-
)
250+
end = len(self._universe.trajectory) if self._args.end == -1 else self._args.end
255251
step = self._args.step or 1
256252

257253
return start, end, step

0 commit comments

Comments
 (0)