Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
sensormapgeo
Commits
acd2fc8e
Commit
acd2fc8e
authored
Aug 07, 2020
by
Daniel Scheffler
Browse files
Fixed issue
#3
(NotADirectoryError due to race condition).
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
2f18e7fc
Pipeline
#11231
passed with stage
in 1 minute and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sensormapgeo/transformer_2d.py
View file @
acd2fc8e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment