Commit 3b0c713b authored by Benjamin Pillot's avatar Benjamin Pillot
Browse files

Fix progress bar for gdal functions:

* Update only when progress bar is not closed yet
parent d632d6bc
......@@ -4,6 +4,7 @@
More detailed description.
"""
import math
from collections import Collection
from itertools import chain, islice
......@@ -108,7 +109,10 @@ def gdal_progress_bar(display, description):
def gdal_progress_callback(complete, message, tqdm_pg):
tqdm_pg.update(1)
if complete >= 1:
tqdm_pg.close()
else:
tqdm_pg.update(1)
@njit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment