Skip to content

Commit 301e018

Browse files
committed
Fixed inconsistent halo for block extraction
1 parent e7ac133 commit 301e018

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reproducibility/block_extraction/repro_block_extraction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def repro_block_extraction(
2929
roi_halo = dic["halo_size"]
3030
crop_centers = dic["crop_centers"]
3131
for coord in crop_centers:
32-
extract_block(input_path, coord, output_dir, input_key=input_key, roi_halo=roi_halo, tif=tif_flag,
32+
extract_block(input_path, coord, output_dir, input_key=input_key,
33+
roi_halo=roi_halo.copy(), tif=tif_flag,
3334
s3=s3_flag, s3_credentials=s3_credentials, s3_bucket_name=s3_bucket_name,
3435
s3_service_endpoint=s3_service_endpoint)
3536

0 commit comments

Comments
 (0)