maps4fs 2.8.5__py3-none-any.whl → 2.8.7__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.

Potentially problematic release.


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

@@ -7,6 +7,7 @@ import os
7
7
  import shutil
8
8
  import warnings
9
9
  from collections import defaultdict
10
+ from time import perf_counter
10
11
  from typing import Any, Callable, Generator, Optional
11
12
 
12
13
  import cv2
@@ -796,7 +797,13 @@ class Texture(ImageComponent):
796
797
  warnings.simplefilter("ignore", FutureWarning)
797
798
  objects = ox.features_from_xml(self.map.custom_osm, tags=tags)
798
799
  else:
800
+ before_fetch = perf_counter()
799
801
  objects = ox.features_from_bbox(bbox=self.new_bbox, tags=tags)
802
+ after_fetch = perf_counter()
803
+ fetched_in = after_fetch - before_fetch
804
+ self.logger.info(
805
+ "Fetched OSMNX objects for tags: %s in %.2f seconds.", tags, fetched_in
806
+ )
800
807
  except Exception as e:
801
808
  self.logger.debug("Error fetching objects for tags: %s. Error: %s.", tags, e)
802
809
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.8.5
3
+ Version: 2.8.7
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
@@ -16,14 +16,14 @@ maps4fs/generator/component/grle.py,sha256=0PC1K829wjD4y4d9qfIbnU29ebjflIPBbwIZx
16
16
  maps4fs/generator/component/i3d.py,sha256=RvpiW9skkZ6McyahC-AeIdPuSQjpXiFs1l0xOioJAu4,26638
17
17
  maps4fs/generator/component/layer.py,sha256=bdy1XGOODyPqYUM3b_wEY2H9Piz-AaHsCDecl-qRHiM,6627
18
18
  maps4fs/generator/component/satellite.py,sha256=9nKwL8zQ-BB6WFMx2m8zduFn6RaxSNv6Vtpge1-QMYE,5052
19
- maps4fs/generator/component/texture.py,sha256=gXZgr73ehT3_qjuIku0j7N7exloywtmmEQKBJ-MDcco,36988
19
+ maps4fs/generator/component/texture.py,sha256=AjN1RsnVLtL7F13B_va6psKTTPc_0JCEznjT5mb1vKo,37309
20
20
  maps4fs/generator/component/base/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
21
21
  maps4fs/generator/component/base/component.py,sha256=-7H3donrH19f0_rivNyI3fgLsiZkntXfGywEx4tOnM4,23924
22
22
  maps4fs/generator/component/base/component_image.py,sha256=GXFkEFARNRkWkDiGSjvU4WX6f_8s6R1t2ZYqZflv1jk,9626
23
23
  maps4fs/generator/component/base/component_mesh.py,sha256=S5M_SU-FZz17-LgzTIM935ms1Vc4O06UQNTEN4e0INU,24729
24
24
  maps4fs/generator/component/base/component_xml.py,sha256=MT-VhU2dEckLFxAgmxg6V3gnv11di_94Qq6atfpOLdc,5342
25
- maps4fs-2.8.5.dist-info/licenses/LICENSE.md,sha256=Ptw8AkqJ60c4tRts6yuqGP_8B0dxwOGmJsp6YJ8dKqM,34328
26
- maps4fs-2.8.5.dist-info/METADATA,sha256=spNUf5QNjPOszSmK34GWb6ek7Vt0jlwc6MUUe0p1k3g,10042
27
- maps4fs-2.8.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- maps4fs-2.8.5.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
29
- maps4fs-2.8.5.dist-info/RECORD,,
25
+ maps4fs-2.8.7.dist-info/licenses/LICENSE.md,sha256=Ptw8AkqJ60c4tRts6yuqGP_8B0dxwOGmJsp6YJ8dKqM,34328
26
+ maps4fs-2.8.7.dist-info/METADATA,sha256=hA4i15ZiQj-3gbuJT33_cu6Igi3Em7fjQ5iormy33lo,10042
27
+ maps4fs-2.8.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ maps4fs-2.8.7.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
29
+ maps4fs-2.8.7.dist-info/RECORD,,