Skip to content

Commit ff0d889

Browse files
committed
fix for error on linux
1 parent a1deb48 commit ff0d889

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ucgrassland/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,9 @@ def set_no_data_value(tif_file, no_data_value):
14371437
current_no_data = src.nodata
14381438

14391439
if current_no_data is None or float(current_no_data) != no_data_value:
1440-
with rasterio.open(tif_file, "r+", IGNORE_COG_LAYOUT_BREAK="YES") as src: #
1440+
with rasterio.open(
1441+
tif_file, "r+", IGNORE_COG_LAYOUT_BREAK="YES"
1442+
) as src: # fix for error on linux
14411443
src.nodata = no_data_value
14421444

14431445
logger.info(

0 commit comments

Comments
 (0)