Skip to content

Commit 718df87

Browse files
Merge pull request #73 from till-m/fix-restricted-trajectories
fix restricted trajectories
2 parents e83bf5c + 8e6fd08 commit 718df87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)