We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6dcfbc commit 4e40226Copy full SHA for 4e40226
pyroSAR/drivers.py
@@ -182,11 +182,11 @@ def handler(scene):
182
progress.update(i + 1)
183
if progress is not None:
184
progress.finish()
185
- if sortkey is not None:
186
- idlist.sort(key=operator.attrgetter(sortkey))
187
else:
188
idlist = multicore(function=handler, multiargs={'scene': scenes},
189
pbar=pbar, cores=cores)
+ if sortkey is not None:
+ idlist.sort(key=operator.attrgetter(sortkey))
190
idlist = list(filter(None, idlist))
191
return idlist
192
0 commit comments