Skip to content

Commit 7c1a56c

Browse files
committed
change from list(range(start, end, step)) to list(range(number_frames)) to ensure the correct range is captured
1 parent bdf4901 commit 7c1a56c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CodeEntropy/entropy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def assign_conformation(
897897

898898
# get the values of the angle for the dihedral
899899
# dihedral angle values have a range from -180 to 180
900-
indices = list(range(start, end, step))
900+
indices = list(range(number_frames))
901901
for timestep_index, _ in zip(
902902
indices, data_container.trajectory[start:end:step]
903903
):

CodeEntropy/levels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def build_covariance_matrices(
818818
title="Starting...",
819819
)
820820

821-
indices = list(range(start, end, step))
821+
indices = list(range(number_frames))
822822
for time_index, _ in zip(indices, reduced_atom.trajectory[start:end:step]):
823823
for group_id, molecules in groups.items():
824824
for mol_id in molecules:

0 commit comments

Comments
 (0)