Correct codacy warnings

This commit is contained in:
FilippoOlivo
2024-10-22 14:54:22 +02:00
committed by Nicola Demo
parent 1bc1b3a580
commit 3e30450e9a
10 changed files with 60 additions and 37 deletions

View File

@@ -33,7 +33,7 @@ class PinaDataLoader:
Create batches according to the batch_size provided in input.
"""
self.batches = []
n_elements = sum([len(v) for v in self.dataset_dict.values()])
n_elements = sum(len(v) for v in self.dataset_dict.values())
if batch_size is None:
batch_size = n_elements
indexes_dict = {}