voxcity 0.6.11__py3-none-any.whl → 0.6.13__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 voxcity might be problematic. Click here for more details.

@@ -1933,8 +1933,8 @@ def create_multi_view_scene(meshes, output_directory="output", projection_type="
1933
1933
 
1934
1934
  images = []
1935
1935
  for view_name, camera_pos in camera_positions.items():
1936
- # Create new plotter for each view
1937
- plotter = pv.Plotter(notebook=True, off_screen=True)
1936
+ # Create new plotter for each view (avoid notebook backend in headless/CI)
1937
+ plotter = pv.Plotter(off_screen=True)
1938
1938
 
1939
1939
  # Set the projection type
1940
1940
  if projection_type.lower() == "orthographic":
@@ -2047,10 +2047,6 @@ def visualize_voxcity_multi_view(voxel_array, meshsize, **kwargs):
2047
2047
  ... save_obj=True
2048
2048
  ... )
2049
2049
  """
2050
- # Set up headless rendering environment for PyVista
2051
- os.system('Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &')
2052
- os.environ['DISPLAY'] = ':99'
2053
-
2054
2050
  # Configure PyVista settings for high-quality rendering
2055
2051
  pv.set_plot_theme('document')
2056
2052
  pv.global_theme.background = 'white'
@@ -2082,6 +2078,18 @@ def visualize_voxcity_multi_view(voxel_array, meshsize, **kwargs):
2082
2078
  # Output control parameters
2083
2079
  save_obj = kwargs.get("save_obj", False)
2084
2080
  show_views = kwargs.get("show_views", True)
2081
+ # Disable rendering in CI/headless to avoid VTK segfaults
2082
+ if os.getenv('GITHUB_ACTIONS', 'false').lower() == 'true' or os.getenv('CI', 'false').lower() == 'true':
2083
+ show_views = False
2084
+
2085
+ # Set up headless rendering environment for PyVista only if we will render
2086
+ if show_views and sys.platform.startswith('linux'):
2087
+ try:
2088
+ import pyvista as _pv
2089
+ _pv.start_xvfb()
2090
+ except Exception:
2091
+ os.system('Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &')
2092
+ os.environ['DISPLAY'] = ':99'
2085
2093
 
2086
2094
  # Create 3D meshes from voxel data
2087
2095
  print("Creating voxel meshes...")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: voxcity
3
- Version: 0.6.11
3
+ Version: 0.6.13
4
4
  Summary: voxcity is an easy and one-stop tool to output 3d city models for microclimate simulation by integrating multiple geospatial open-data
5
5
  License: MIT
6
6
  Author: Kunihiko Fujiwara
@@ -5,7 +5,7 @@ voxcity/downloader/eubucco.py,sha256=ln1YNaaOgJfxNfCtVbYaMm775-bUvpAA_LDv60_i22w
5
5
  voxcity/downloader/gee.py,sha256=nvJvYqcSZyyontRtG2cFeb__ZJfeY4rRN1NBPORxLwQ,23557
6
6
  voxcity/downloader/mbfp.py,sha256=UXDVjsO0fnb0fSal9yqrSFEIBThnRmnutnp08kZTmCA,6595
7
7
  voxcity/downloader/oemj.py,sha256=iDacTpiqn7RAXuqyEtHP29m0Cycwta5sMy9-GdvX3Fg,12293
8
- voxcity/downloader/osm.py,sha256=9nOVcVE50N76F5uquJbNIFr8Xajff4ac2Uj2oSGcFrc,42591
8
+ voxcity/downloader/osm.py,sha256=3vyH5jdPNe1vDXBYObLB0mtzYw7Ax8sEoF2KVn6UQO4,45561
9
9
  voxcity/downloader/overture.py,sha256=4YG2DMwUSSyZKUw_o8cGhMmAkPJon82aPqOFBvrre-Y,11987
10
10
  voxcity/downloader/utils.py,sha256=tz6wt4B9BhEOyvoF5OYXlr8rUd5cBEDedWL3j__oT70,3099
11
11
  voxcity/exporter/__init__.py,sha256=dvyWJ184Eik9tFc0VviGbzTQzZi7O0JNyrqi_n39pVI,94
@@ -15,7 +15,7 @@ voxcity/exporter/magicavoxel.py,sha256=SfGEgTZRlossKx3Xrv9d3iKSX-HmfQJEL9lZHgWMD
15
15
  voxcity/exporter/obj.py,sha256=h1_aInpemcsu96fSTwjKMqX2VZAFYbZbElWd4M1ogyI,27973
16
16
  voxcity/generator.py,sha256=ok0LqVk9k0xVqXD9Ybar-CWmqi-vooJmrAFi9WjsaKE,58327
17
17
  voxcity/geoprocessor/__init__.py,sha256=WYxcAQrjGucIvGHF0JTC6rONZzL3kCms1S2vpzS6KaU,127
18
- voxcity/geoprocessor/draw.py,sha256=avXQwbGQWG3ZPPI8mwy0YN0K_aG4NMBdXI0vDg7yad0,35837
18
+ voxcity/geoprocessor/draw.py,sha256=VCrPuYVFnbdRXCgpUXykJgtFW8nwPzcKcwzp5Sdu4wY,46495
19
19
  voxcity/geoprocessor/grid.py,sha256=D4sqoIGK2P1U8uuVQZ-447SD0Yrv6qS_zlmDtKoLDe8,71257
20
20
  voxcity/geoprocessor/mesh.py,sha256=A7uaCMWfm82KEoYPfQYpxv6xMtQKaU2PBVDfKTpngqg,32027
21
21
  voxcity/geoprocessor/network.py,sha256=YynqR0nq_NUra_cQ3Z_56KxfRia1b6-hIzGCj3QT-wE,25137
@@ -28,10 +28,10 @@ voxcity/simulator/view.py,sha256=k3FoS6gsibR-eDrTHJivJSQfvN3Tg8R8eSTeMqd9ans,939
28
28
  voxcity/utils/__init__.py,sha256=Q-NYCqYnAAaF80KuNwpqIjbE7Ec3Gr4y_khMLIMhJrg,68
29
29
  voxcity/utils/lc.py,sha256=722Gz3lPbgAp0mmTZ-g-QKBbAnbxrcgaYwb1sa7q8Sk,16189
30
30
  voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
31
- voxcity/utils/visualization.py,sha256=ZR9N-XKfydeSStO53IM2hGXyZJoeBiAyIMWw9Cb2MPM,116449
31
+ voxcity/utils/visualization.py,sha256=TQKMmATpAqSDTPMvMi1a-n2CvvzE2KcYVsss7iiShS4,116877
32
32
  voxcity/utils/weather.py,sha256=2Jtg-rIVJcsTtiKE-KuDnhIqS1-MSS16_zFRzj6zmu4,36435
33
- voxcity-0.6.11.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
- voxcity-0.6.11.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
- voxcity-0.6.11.dist-info/METADATA,sha256=rxIT9Q2Zm2CchVekezWSQSzqL-QgRbufm39gifTb5HE,26092
36
- voxcity-0.6.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
- voxcity-0.6.11.dist-info/RECORD,,
33
+ voxcity-0.6.13.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
+ voxcity-0.6.13.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
+ voxcity-0.6.13.dist-info/METADATA,sha256=YIYA3mtfOVm8-_0ZjTtDCKG8cYTOR-hz_SOsdiGJZe8,26092
36
+ voxcity-0.6.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
+ voxcity-0.6.13.dist-info/RECORD,,