Skip to content

Commit

Permalink
Fixed tar generator length.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoOinonen committed Mar 22, 2024
1 parent fd88880 commit d3f4740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlspm/data_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(self, samples: list[TarSampleList], base_path: PathLike = "./", n_p

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

def _launch_procs(self):
queue_size = 2 * self.n_proc
Expand Down

0 comments on commit d3f4740

Please sign in to comment.