Skip to content

Commit 8e6fd08

Browse files
committed
fix restricted trajectories
1 parent 6cd3c44 commit 8e6fd08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

the_well/data/datasets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,9 @@ def _build_restriction_set(
389389
- 1
390390
)
391391
if traj in trajectories_sampled:
392+
n_windows = self.n_windows_per_trajectory[file_index]
392393
global_indices = global_indices + list(
393-
range(0, self.n_windows_per_trajectory[file_index])
394+
range(current_index, current_index + n_windows)
394395
)
395396
current_index += self.n_windows_per_trajectory[file_index]
396397
global_indices = np.array(global_indices)

0 commit comments

Comments
 (0)