Skip to content

Commit d3f4740

Browse files
committed
Fixed tar generator length.
1 parent fd88880 commit d3f4740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlspm/data_generation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(self, samples: list[TarSampleList], base_path: PathLike = "./", n_p
170170

171171
def __len__(self) -> int:
172172
"""Total number of samples (including rotations)"""
173-
return sum([len(s["rots"]) for s in self.samples])
173+
return sum([sum([len(rots) for rots in sample_list["rots"]]) for sample_list in self.samples])
174174

175175
def _launch_procs(self):
176176
queue_size = 2 * self.n_proc

0 commit comments

Comments
 (0)