Skip to content
Snippets Groups Projects
Commit 324940dc authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

~True evaluates to -2 instead of False.


Signed-off-by: default avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 7fc7cc3e
No related branches found
No related tags found
1 merge request!80Bugfix/fix unexpected progressbar
......@@ -167,7 +167,7 @@ class Spatial_Optimizer(object):
dst_ds.GetRasterBand(1).Fill(int(src_nodata))
# reproject the needed subset from the reference image to a UTM 15m grid (like self._EnMAP_band)
cb = ProgressBar(prefix='Warping progress ', timeout=None) if ~self.cfg.disable_progress_bars else None
cb = ProgressBar(prefix='Warping progress ') if not self.cfg.disable_progress_bars else None
gdal.SetConfigOption('GDAL_NUM_THREADS', f'{self.cfg.CPUs}')
gdal.ReprojectImage(
src_ds,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment