maps4fs 2.9.1__tar.gz → 2.9.3__tar.gz

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.

Potentially problematic release.


This version of maps4fs might be problematic. Click here for more details.

Files changed (36) hide show
  1. {maps4fs-2.9.1 → maps4fs-2.9.3}/PKG-INFO +1 -1
  2. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/base/component_mesh.py +2 -13
  3. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/monitor.py +1 -1
  4. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs.egg-info/PKG-INFO +1 -1
  5. {maps4fs-2.9.1 → maps4fs-2.9.3}/pyproject.toml +1 -1
  6. {maps4fs-2.9.1 → maps4fs-2.9.3}/LICENSE.md +0 -0
  7. {maps4fs-2.9.1 → maps4fs-2.9.3}/README.md +0 -0
  8. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/__init__.py +0 -0
  9. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/__init__.py +0 -0
  10. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/__init__.py +0 -0
  11. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/background.py +0 -0
  12. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/base/__init__.py +0 -0
  13. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/base/component.py +0 -0
  14. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/base/component_image.py +0 -0
  15. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/base/component_xml.py +0 -0
  16. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/config.py +0 -0
  17. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/dem.py +0 -0
  18. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/grle.py +0 -0
  19. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/i3d.py +0 -0
  20. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/layer.py +0 -0
  21. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/satellite.py +0 -0
  22. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/component/texture.py +0 -0
  23. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/config.py +0 -0
  24. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/game.py +0 -0
  25. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/map.py +0 -0
  26. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/qgis.py +0 -0
  27. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/settings.py +0 -0
  28. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/statistics.py +0 -0
  29. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/generator/utils.py +0 -0
  30. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs/logger.py +0 -0
  31. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs.egg-info/SOURCES.txt +0 -0
  32. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs.egg-info/dependency_links.txt +0 -0
  33. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs.egg-info/requires.txt +0 -0
  34. {maps4fs-2.9.1 → maps4fs-2.9.3}/maps4fs.egg-info/top_level.txt +0 -0
  35. {maps4fs-2.9.1 → maps4fs-2.9.3}/setup.cfg +0 -0
  36. {maps4fs-2.9.1 → maps4fs-2.9.3}/tests/test_generator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.9.1
3
+ Version: 2.9.3
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: GNU Affero General Public License v3.0
@@ -1,6 +1,5 @@
1
1
  """Base class for all components that primarily used to work with meshes."""
2
2
 
3
- import logging
4
3
  import os
5
4
  import shutil
6
5
  import xml.etree.ElementTree as ET
@@ -16,8 +15,6 @@ from tqdm import tqdm
16
15
  from maps4fs.generator.component.base.component import Component
17
16
  from maps4fs.generator.settings import Parameters
18
17
 
19
- logger = logging.getLogger("maps4fs")
20
-
21
18
 
22
19
  class MeshComponent(Component):
23
20
  """Base class for all components that primarily used to work with meshes."""
@@ -607,18 +604,10 @@ class MeshComponent(Component):
607
604
  [f"{n[0]:.6f} {n[1]:.6f} {n[2]:.6f}" for n in mesh.vertex_normals]
608
605
  )
609
606
 
610
- if normal_strings is None:
611
- logger.warning("Normals are missing despite has_normals being True. Can't write i3d.")
612
- return
613
-
614
607
  uv_strings = None
615
608
  if has_uv:
616
609
  uv_strings = np.array([f"{uv[0]:.6f} {uv[1]:.6f}" for uv in mesh.visual.uv])
617
610
 
618
- if uv_strings is None:
619
- logger.warning("UV coordinates are missing despite has_uv being True. Can't write i3d.")
620
- return
621
-
622
611
  # Batch process vertices for memory efficiency
623
612
  batch_size = 2000
624
613
  vertex_elements = []
@@ -634,10 +623,10 @@ class MeshComponent(Component):
634
623
  v_el.set("p", pos_strings[idx])
635
624
 
636
625
  if has_normals:
637
- v_el.set("n", normal_strings[idx])
626
+ v_el.set("n", normal_strings[idx]) # type: ignore
638
627
 
639
628
  if has_uv:
640
- v_el.set("t0", uv_strings[idx])
629
+ v_el.set("t0", uv_strings[idx]) # type: ignore
641
630
 
642
631
  batch_elements.append(v_el)
643
632
 
@@ -103,7 +103,7 @@ def monitor_performance(func: Callable) -> Callable:
103
103
  try:
104
104
  if session_name and time_taken > 0.001 and class_name:
105
105
  PerformanceMonitor().add_record(session_name, class_name, function_name, time_taken)
106
- logger.info(
106
+ logger.debug(
107
107
  "[PERFORMANCE] %s | %s | %s | %s",
108
108
  session_name,
109
109
  class_name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.9.1
3
+ Version: 2.9.3
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: GNU Affero General Public License v3.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maps4fs"
7
- version = "2.9.1"
7
+ version = "2.9.3"
8
8
  description = "Generate map templates for Farming Simulator from real places."
9
9
  authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}]
10
10
  license = {text = "GNU Affero General Public License v3.0"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes