Skip to content

Commit

Permalink
Fixed num_threads argument
Browse files Browse the repository at this point in the history
  • Loading branch information
simonreise committed Apr 28, 2024
1 parent fccf82c commit bd145c0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/remote_sensing_processor/common/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def normalize_file(input_file, output_file, minimum, maximum):
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True,
)

Expand Down
2 changes: 1 addition & 1 deletion src/remote_sensing_processor/common/rasterize.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def rasterize_vector(vector, raster, burn_value, output_file, nodata):
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True,
)
2 changes: 1 addition & 1 deletion src/remote_sensing_processor/common/replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def replace_val(input_file, output_file, new, old, nodata):
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True,
)
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def nd(name, b1, b2, folder=None):
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True
)
return outpath
4 changes: 2 additions & 2 deletions src/remote_sensing_processor/landsat/landsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def landsat_proc(path,
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
compute=False,
lock=True,
))
Expand All @@ -301,7 +301,7 @@ def landsat_proc(path,
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
compute=False,
lock=True,
))
Expand Down
2 changes: 1 addition & 1 deletion src/remote_sensing_processor/mosaic/mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def mosaic_process(
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True,
)
return output_dir + band + '.tif'
Expand Down
2 changes: 1 addition & 1 deletion src/remote_sensing_processor/segmentation/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def predict_map_from_tiles(
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
lock=True,
)
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def s2postprocess(
ZLEVEL=9,
BIGTIFF='IF_SAFER',
tiled=True,
NUM_THREADS='NUM_CPUS',
NUM_THREADS='ALL_CPUS',
compute=False,
lock=True,
))
Expand Down

0 comments on commit bd145c0

Please sign in to comment.