Skip to content

Commit 4e40226

Browse files
[drivers.identify_many] enable sorting for multicore identification
1 parent e6dcfbc commit 4e40226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyroSAR/drivers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ def handler(scene):
182182
progress.update(i + 1)
183183
if progress is not None:
184184
progress.finish()
185-
if sortkey is not None:
186-
idlist.sort(key=operator.attrgetter(sortkey))
187185
else:
188186
idlist = multicore(function=handler, multiargs={'scene': scenes},
189187
pbar=pbar, cores=cores)
188+
if sortkey is not None:
189+
idlist.sort(key=operator.attrgetter(sortkey))
190190
idlist = list(filter(None, idlist))
191191
return idlist
192192

0 commit comments

Comments
 (0)