Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
529517a6
Commit
529517a6
authored
Mar 22, 2019
by
Daniel Scheffler
Browse files
Fixed bug that caused to use multiprocessing.Pool if number of CPUs is set to 1.
parent
70118ff8
Pipeline
#3806
failed with stages
in 14 minutes and 42 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
py_tools_ds/geo/raster/reproject.py
View file @
529517a6
...
...
@@ -917,7 +917,7 @@ class SensorMapGeometryTransformer3D(object):
band_idx
=
band
)
for
band
in
range
(
data
.
shape
[
2
])]
if
self
.
mp_alg
==
'bands'
:
if
self
.
opts
[
'nprocs'
]
>
1
and
self
.
mp_alg
==
'bands'
:
with
multiprocessing
.
Pool
(
self
.
opts
[
'nprocs'
])
as
pool
:
result
=
pool
.
map
(
self
.
_to_map_geometry_2D
,
args
)
else
:
...
...
@@ -971,7 +971,7 @@ class SensorMapGeometryTransformer3D(object):
band_idx
=
band
)
for
band
in
range
(
data
.
shape
[
2
])]
if
self
.
mp_alg
==
'bands'
:
if
self
.
opts
[
'nprocs'
]
>
1
and
self
.
mp_alg
==
'bands'
:
with
multiprocessing
.
Pool
(
self
.
opts
[
'nprocs'
])
as
pool
:
result
=
pool
.
map
(
self
.
_to_sensor_geometry_2D
,
args
)
else
:
...
...
py_tools_ds/version.py
View file @
529517a6
__version__
=
'0.14.1
4
'
__versionalias__
=
'2019032
1
_0
2
'
__version__
=
'0.14.1
5
'
__versionalias__
=
'2019032
2
_0
1
'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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