Skip to content

Commit 29e4f3b

Browse files
committed
iterate over the map...
1 parent bc1b147 commit 29e4f3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/graphnet/data/dataconverter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ def _launch_jobs(
129129
map_fn, pool = self.get_map_function(nb_files=len(input_files))
130130

131131
# Iterate over files
132-
map_fn(
132+
for _ in map_fn(
133133
self._process_file,
134134
tqdm(input_files, unit=" file(s)", colour="green"),
135-
)
135+
):
136+
pass
136137
self._update_shared_variables(pool)
137138

138139
@final

0 commit comments

Comments
 (0)