diff --git a/maps4fs/generator/dem.py b/maps4fs/generator/dem.py index cc2d39c9..97c6e590 100644 --- a/maps4fs/generator/dem.py +++ b/maps4fs/generator/dem.py @@ -14,7 +14,7 @@ from maps4fs.generator.component import Component SRTM = "https://elevation-tiles-prod.s3.amazonaws.com/skadi/{latitude_band}/{tile_name}.hgt.gz" -DEFAULT_MULTIPLIER = 1.0 +DEFAULT_MULTIPLIER = 1 DEFAULT_BLUR_RADIUS = 35 DEFAULT_PLATEAU = 0 @@ -146,9 +146,10 @@ def process(self) -> None: self.logger.debug("Size of resampled data: %s MB.", size_of_resampled_data) self.logger.debug( - "Maximum value in resampled data: %s, minimum value: %s.", + "Maximum value in resampled data: %s, minimum value: %s. Data type: %s.", resampled_data.max(), resampled_data.min(), + resampled_data.dtype, ) if self.auto_process: @@ -159,10 +160,11 @@ def process(self) -> None: resampled_data = resampled_data * self.multiplier self.logger.debug( - "DEM data was multiplied by %s. Min: %s, max: %s.", + "DEM data was multiplied by %s. Min: %s, max: %s. Data type: %s.", self.multiplier, resampled_data.min(), resampled_data.max(), + resampled_data.dtype, ) size_of_resampled_data = asizeof.asizeof(resampled_data) / 1024 / 1024 diff --git a/pyproject.toml b/pyproject.toml index eaf273d7..6f5defba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "maps4fs" -version = "0.9.92" +version = "0.9.93" description = "Generate map templates for Farming Simulator from real places." authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}] license = {text = "MIT License"} diff --git a/webui/generator.py b/webui/generator.py index 99d65356..4cbebde5 100644 --- a/webui/generator.py +++ b/webui/generator.py @@ -222,9 +222,9 @@ def add_left_widgets(self) -> None: self.multiplier_input = st.number_input( "Multiplier", value=DEFAULT_MULTIPLIER, - min_value=0.0, - max_value=10000.0, - step=0.01, + min_value=0, + max_value=10000, + step=1, key="multiplier", label_visibility="collapsed", ) diff --git a/webui/templates.py b/webui/templates.py index cba90529..62ed8b29 100644 --- a/webui/templates.py +++ b/webui/templates.py @@ -52,7 +52,6 @@ class Messages: "This multiplier can be used to make the terrain more pronounced. " "By default the DEM file will be exact copy of the real terrain. " "If you want to make it more steep, you can increase this value. " - "Or make it smaller to make the terrain more flat." ) DEM_BLUR_RADIUS_INFO = ( "This value is used to blur the elevation map. Without blurring the terrain "