Skip to content

Commit 680ee32

Browse files
authored
Nodata none (#14)
* no data none * increment
1 parent 170e5f9 commit 680ee32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rschip"
7-
version = "0.4.2"
7+
version = "0.4.3"
88
description = "Prepare satellite images and training data for use with deep learning models"
99
readme = { file = "README.md", content-type = "text/markdown" }
1010
license = { text = "MIT" }

src/rschip/segmentation_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _write_mask(self, mask: np.ndarray, silent: bool = False) -> None:
150150
"""
151151
with rio.open(self.input_image_path) as src:
152152
meta = src.meta.copy()
153-
meta.update({"count": 1, "dtype": "uint8", "compress": "lzw"})
153+
meta.update({"count": 1, "dtype": "uint8", "compress": "lzw", "nodata": None})
154154
with rio.open(self.output_path, "w", **meta) as dst:
155155
dst.write(mask, 1)
156156
if not silent:

0 commit comments

Comments
 (0)