maps4fs 0.7.7__py3-none-any.whl → 0.7.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maps4fs/generator/dem.py +5 -2
- {maps4fs-0.7.7.dist-info → maps4fs-0.7.9.dist-info}/METADATA +1 -1
- {maps4fs-0.7.7.dist-info → maps4fs-0.7.9.dist-info}/RECORD +6 -6
- {maps4fs-0.7.7.dist-info → maps4fs-0.7.9.dist-info}/LICENSE.md +0 -0
- {maps4fs-0.7.7.dist-info → maps4fs-0.7.9.dist-info}/WHEEL +0 -0
- {maps4fs-0.7.7.dist-info → maps4fs-0.7.9.dist-info}/top_level.txt +0 -0
maps4fs/generator/dem.py
CHANGED
@@ -39,7 +39,10 @@ class DEM(Component):
|
|
39
39
|
os.makedirs(self.gz_dir, exist_ok=True)
|
40
40
|
|
41
41
|
self.multiplier = self.kwargs.get("multiplier", DEFAULT_MULTIPLIER)
|
42
|
-
|
42
|
+
blur_radius = self.kwargs.get("blur_radius", DEFAULT_BLUR_RADIUS)
|
43
|
+
if blur_radius % 2 == 0:
|
44
|
+
blur_radius += 1
|
45
|
+
self.blur_radius = blur_radius
|
43
46
|
self.logger.debug(
|
44
47
|
"DEM value multiplier is %s, blur radius is %s.", self.multiplier, self.blur_radius
|
45
48
|
)
|
@@ -251,7 +254,7 @@ class DEM(Component):
|
|
251
254
|
|
252
255
|
self.logger.debug("Creating colored preview of DEM data in %s.", colored_dem_path)
|
253
256
|
|
254
|
-
dem_data = cv2.imread(self._dem_path, cv2.
|
257
|
+
dem_data = cv2.imread(self._dem_path, cv2.IMREAD_GRAYSCALE)
|
255
258
|
|
256
259
|
self.logger.debug(
|
257
260
|
"DEM data before normalization. Shape: %s, dtype: %s. Min: %s, max: %s.",
|
@@ -3,12 +3,12 @@ maps4fs/logger.py,sha256=CneeHxQywjNUJXqQrUUSeiDxu95FfrfyK_Si1v0gMZ8,1477
|
|
3
3
|
maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
|
4
4
|
maps4fs/generator/component.py,sha256=BU_HNNyKXuEBohQJRTlXmNdSNrjolwX-ZzqqSSuzTrE,3463
|
5
5
|
maps4fs/generator/config.py,sha256=luDYXkKjgOM4-Mft4mHDPP6v-DVIUyWZAMAsCKyvaoY,2108
|
6
|
-
maps4fs/generator/dem.py,sha256=
|
6
|
+
maps4fs/generator/dem.py,sha256=61SOBf1-Tr0AQb_HeYrnvDbKR4rR_7PfzL7i99ADZEA,11414
|
7
7
|
maps4fs/generator/game.py,sha256=dfbLyu1yqbHkBWmJu1uANCX-84vkdlvqR6hA6JCiIsE,6107
|
8
8
|
maps4fs/generator/map.py,sha256=zLIFAjjz-Y7u_FG-UjYoGiqBreLwuverkYY8Er9L_Qg,3796
|
9
9
|
maps4fs/generator/texture.py,sha256=cEXQOLJ5Iq_Nb0C9OmU-9PR-E_5cgM1Q62kG49G3VNg,16019
|
10
|
-
maps4fs-0.7.
|
11
|
-
maps4fs-0.7.
|
12
|
-
maps4fs-0.7.
|
13
|
-
maps4fs-0.7.
|
14
|
-
maps4fs-0.7.
|
10
|
+
maps4fs-0.7.9.dist-info/LICENSE.md,sha256=-JY0v7p3dwXze61EbYiK7YEJ2aKrjaFZ8y2xYEOrmRY,1068
|
11
|
+
maps4fs-0.7.9.dist-info/METADATA,sha256=AoopE2APfkWbDK6H25pTqXuObQ_suF7a2kOxbiNGEPg,11844
|
12
|
+
maps4fs-0.7.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
13
|
+
maps4fs-0.7.9.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
|
14
|
+
maps4fs-0.7.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|