maps4fs 1.8.183__py3-none-any.whl → 1.8.184__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.
@@ -159,7 +159,7 @@ class Background(MeshComponent, ImageComponent):
159
159
  If at least one DEM file is missing, the generation will be stopped at all.
160
160
  """
161
161
  if not os.path.isfile(self.dem.dem_path):
162
- self.logger.warning(
162
+ self.logger.error(
163
163
  "DEM file not found, generation will be stopped: %s", self.dem.dem_path
164
164
  )
165
165
  return
@@ -436,7 +436,7 @@ class Background(MeshComponent, ImageComponent):
436
436
 
437
437
  # Check if the image contains non-zero values.
438
438
  if not np.any(plane_water):
439
- self.logger.warning("Water resources image is empty, skipping water generation.")
439
+ self.logger.debug("Water resources image is empty, skipping water generation.")
440
440
  return
441
441
 
442
442
  dilated_plane_water = cv2.dilate(
@@ -156,14 +156,14 @@ class GRLE(ImageComponent, XMLComponent):
156
156
  """
157
157
  fields_layer = self.map.get_texture_layer(by_usage="field")
158
158
  if not fields_layer:
159
- self.logger.warning("Fields layer not found in the texture component.")
159
+ self.logger.debug("Fields layer not found in the texture component.")
160
160
  return None
161
161
 
162
162
  fields_layer_path = fields_layer.get_preview_or_path(
163
163
  self.game.weights_dir_path(self.map_directory)
164
164
  )
165
165
  if not fields_layer_path or not os.path.isfile(fields_layer_path):
166
- self.logger.warning("Fields layer not found in the texture component.")
166
+ self.logger.debug("Fields layer not found in the texture component.")
167
167
  return None
168
168
  fields_np = cv2.imread(fields_layer_path)
169
169
  # Resize fields_np to the same size as farmlands_np.
@@ -182,7 +182,7 @@ class GRLE(ImageComponent, XMLComponent):
182
182
 
183
183
  fields = self.get_infolayer_data(Parameters.TEXTURES, Parameters.FIELDS)
184
184
  if not fields:
185
- self.logger.warning("Fields data not found in textures info layer.")
185
+ self.logger.debug("Fields data not found in textures info layer.")
186
186
  return
187
187
  farmlands.extend(fields)
188
188
 
maps4fs/generator/dem.py CHANGED
@@ -317,7 +317,6 @@ class DEM(Component):
317
317
  """Saves empty DEM file filled with zeros."""
318
318
  dem_data = np.zeros(dem_output_resolution, dtype="uint16")
319
319
  cv2.imwrite(self._dem_path, dem_data)
320
- self.logger.warning("DEM data filled with zeros and saved to %s.", self._dem_path)
321
320
 
322
321
  def info_sequence(self) -> dict[Any, Any] | None: # type: ignore
323
322
  """Returns the information sequence for the component. Must be implemented in the child
@@ -838,9 +838,9 @@ class Texture(Component):
838
838
  )
839
839
 
840
840
  if not isinstance(padded_polygon, shapely.geometry.polygon.Polygon):
841
- self.logger.warning("The padding value is too high, field will not padded.")
841
+ self.logger.debug("The padding value is too high, field will not padded.")
842
842
  elif not list(padded_polygon.exterior.coords):
843
- self.logger.warning("The padding value is too high, field will not padded.")
843
+ self.logger.debug("The padding value is too high, field will not padded.")
844
844
  else:
845
845
  polygon = padded_polygon
846
846
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: maps4fs
3
- Version: 1.8.183
3
+ Version: 1.8.184
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -1,16 +1,16 @@
1
1
  maps4fs/__init__.py,sha256=vbZRLqERqH-LD2l69dSyZEU4DsuVCU93UrGX5wYs3Os,1431
2
2
  maps4fs/logger.py,sha256=HQrDyj72mUjVYo25aR_-_SxVn2rfFjDCNbj-JKJdSnE,1488
3
3
  maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
4
- maps4fs/generator/dem.py,sha256=oLN02bWNax73HzFsseRBOV47Azl_1L7qdrzuxHh4i_c,11886
4
+ maps4fs/generator/dem.py,sha256=dyzCFfDL6W_nCjwi9uF3-PCiL36rfOh3jGXlDuwiJYg,11795
5
5
  maps4fs/generator/game.py,sha256=FFAyckuTW6Ix5aRACXOj2eiA72xd3OMCcOARrMhS164,11025
6
6
  maps4fs/generator/map.py,sha256=QrsZfOcyuLrQuGUjA0nyB7FTcxwj-LUe-rjLiq5P4ME,11467
7
7
  maps4fs/generator/qgis.py,sha256=Es8hLuqN_KH8lDfnJE6He2rWYbAKJ3RGPn-o87S6CPI,6116
8
8
  maps4fs/generator/settings.py,sha256=cFlN-gK8QcySqyPtcGm-2fLnxQnlmC3Y9kQufJxwI3Y,6270
9
- maps4fs/generator/texture.py,sha256=-xIpt71y349Hb0svnFln3e6Bu2GjI5jjNdmooP5TrOI,36778
9
+ maps4fs/generator/texture.py,sha256=kCbTHoHhJPRDLWNhqBF0ElC2bQBPztvaj2qaFrS9vnY,36774
10
10
  maps4fs/generator/component/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
11
- maps4fs/generator/component/background.py,sha256=1JPFZFgRFXGWE5u957gemudC4VzlRazzVBgv9diPzP8,18794
11
+ maps4fs/generator/component/background.py,sha256=Q1GCrCZxAHOI8eNabx_KpgVOYv-3B_WTWOKk4Gn7-o4,18790
12
12
  maps4fs/generator/component/config.py,sha256=RitKgFDZPzjA1fi8GcEi1na75qqaueUvpcITHjBvCXc,3674
13
- maps4fs/generator/component/grle.py,sha256=fT0LRR9cHi0oIPGY7zxsnrAvxnnsZs-lxQxhBhm43z8,19140
13
+ maps4fs/generator/component/grle.py,sha256=nDA6vjjfWFL0Hkz6aso1aLIwuksbxzZw9syNax1bD04,19134
14
14
  maps4fs/generator/component/i3d.py,sha256=kJ3Th1mSdBC9j8cyWBwIyYm0fKzYJtocI0jYWkVX3AU,19713
15
15
  maps4fs/generator/component/satellite.py,sha256=xzxqHp-G-jRgyI38-XdaMPdGWiC3PdhVJAjBnZL9wL8,5004
16
16
  maps4fs/generator/component/base/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
@@ -44,8 +44,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
44
44
  maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
45
45
  maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
46
46
  maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
47
- maps4fs-1.8.183.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
48
- maps4fs-1.8.183.dist-info/METADATA,sha256=K5L9PNoYCSo-ARHvvGvZxnHIZefJ1V6z_PwlAwqYkMI,44314
49
- maps4fs-1.8.183.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
50
- maps4fs-1.8.183.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
51
- maps4fs-1.8.183.dist-info/RECORD,,
47
+ maps4fs-1.8.184.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
48
+ maps4fs-1.8.184.dist-info/METADATA,sha256=PYO7o8u_i6Fzlx8MDkis8fnTtV5wnqEKqbUYxvV8Xcw,44314
49
+ maps4fs-1.8.184.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
50
+ maps4fs-1.8.184.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
51
+ maps4fs-1.8.184.dist-info/RECORD,,