Skip to content

Commit 43558f4

Browse files
committed
fix DiskTrajDataset.on_end_of_collection when not has_replay_rights
1 parent 75b818f commit 43558f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

amago/loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def on_end_of_collection(self, experiment) -> dict[str, Any]:
663663
self._refresh_files()
664664
if not self.has_edit_rights:
665665
# this Experiment is not supposed to manage the dataset
666-
return
666+
return {}
667667
# old `accelerate` paranoia
668668
old_size = self._count_trajectories()
669669
experiment.accelerator.wait_for_everyone()

0 commit comments

Comments
 (0)