Commit bf2bd47f authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Merge branch 'bugfix/fix_NotADirectoryError' into 'master'

Fixed issue #3 (NotADirectoryError due to race condition).

Closes #3

See merge request !3
parents 2f18e7fc acd2fc8e
Pipeline #11232 passed with stages
in 8 minutes and 59 seconds
......@@ -28,6 +28,7 @@ from typing import Union, List, Tuple, Optional
import os
import warnings
from tempfile import TemporaryDirectory
from time import sleep
import numpy as np
import gdal
......@@ -242,6 +243,8 @@ class SensorMapGeometryTransformer(object):
# noinspection PyUnusedLocal
ds_out = None
# avoid NotADirectoryError, possibly due to a race condition on Windows
sleep(.1)
# add 1 px buffer around out_extent to avoid cutting the output image
x_size += 2
......
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