voxcity 0.5.23__tar.gz → 0.5.24__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 voxcity might be problematic. Click here for more details.

Files changed (52) hide show
  1. {voxcity-0.5.23 → voxcity-0.5.24}/PKG-INFO +1 -1
  2. {voxcity-0.5.23 → voxcity-0.5.24}/pyproject.toml +1 -1
  3. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/utils/visualization.py +17 -17
  4. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity.egg-info/PKG-INFO +1 -1
  5. {voxcity-0.5.23 → voxcity-0.5.24}/AUTHORS.rst +0 -0
  6. {voxcity-0.5.23 → voxcity-0.5.24}/CONTRIBUTING.rst +0 -0
  7. {voxcity-0.5.23 → voxcity-0.5.24}/HISTORY.rst +0 -0
  8. {voxcity-0.5.23 → voxcity-0.5.24}/LICENSE +0 -0
  9. {voxcity-0.5.23 → voxcity-0.5.24}/MANIFEST.in +0 -0
  10. {voxcity-0.5.23 → voxcity-0.5.24}/README.md +0 -0
  11. {voxcity-0.5.23 → voxcity-0.5.24}/docs/Makefile +0 -0
  12. {voxcity-0.5.23 → voxcity-0.5.24}/docs/_static/logo.png +0 -0
  13. {voxcity-0.5.23 → voxcity-0.5.24}/docs/conf.py +0 -0
  14. {voxcity-0.5.23 → voxcity-0.5.24}/docs/logo.png +0 -0
  15. {voxcity-0.5.23 → voxcity-0.5.24}/docs/make.bat +0 -0
  16. {voxcity-0.5.23 → voxcity-0.5.24}/setup.cfg +0 -0
  17. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/__init__.py +0 -0
  18. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/__init__.py +0 -0
  19. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/citygml.py +0 -0
  20. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/eubucco.py +0 -0
  21. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/gee.py +0 -0
  22. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/mbfp.py +0 -0
  23. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/oemj.py +0 -0
  24. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/osm.py +0 -0
  25. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/overture.py +0 -0
  26. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/downloader/utils.py +0 -0
  27. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/exporter/__init__.py +0 -0
  28. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/exporter/envimet.py +0 -0
  29. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/exporter/magicavoxel.py +0 -0
  30. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/exporter/obj.py +0 -0
  31. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/generator.py +0 -0
  32. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/__init__.py +0 -0
  33. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/draw.py +0 -0
  34. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/grid.py +0 -0
  35. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/mesh.py +0 -0
  36. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/network.py +0 -0
  37. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/polygon.py +0 -0
  38. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/geoprocessor/utils.py +0 -0
  39. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/simulator/__init__.py +0 -0
  40. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/simulator/solar.py +0 -0
  41. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/simulator/utils.py +0 -0
  42. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/simulator/view.py +0 -0
  43. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/utils/__init__.py +0 -0
  44. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/utils/lc.py +0 -0
  45. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/utils/material.py +0 -0
  46. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity/utils/weather.py +0 -0
  47. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity.egg-info/SOURCES.txt +0 -0
  48. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity.egg-info/dependency_links.txt +0 -0
  49. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity.egg-info/requires.txt +0 -0
  50. {voxcity-0.5.23 → voxcity-0.5.24}/src/voxcity.egg-info/top_level.txt +0 -0
  51. {voxcity-0.5.23 → voxcity-0.5.24}/tests/__init__.py +0 -0
  52. {voxcity-0.5.23 → voxcity-0.5.24}/tests/voxelcity.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: voxcity
3
- Version: 0.5.23
3
+ Version: 0.5.24
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
  Author-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
6
6
  Maintainer-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "voxcity"
3
- version = "0.5.23"
3
+ version = "0.5.24"
4
4
  requires-python = ">=3.10,<3.13"
5
5
  classifiers = [
6
6
  "Programming Language :: Python :: 3.10",
@@ -2490,20 +2490,26 @@ def visualize_voxcity_with_sim_meshes(voxel_array, meshsize, custom_meshes=None,
2490
2490
  # plt.tight_layout()
2491
2491
  # plt.show()
2492
2492
 
2493
- # Export if filename provided
2494
- if base_filename is not None:
2495
- print(f"Exporting files to '{base_filename}.*' ...")
2496
- # Create output directory if it doesn't exist
2497
- os.makedirs(output_directory, exist_ok=True)
2498
- export_meshes(meshes, output_directory, base_filename)
2499
-
2493
+ # # Export if filename provided
2494
+ # if base_filename is not None:
2495
+ # print(f"Exporting files to '{base_filename}.*' ...")
2496
+ # # Create output directory if it doesn't exist
2497
+ # os.makedirs(output_directory, exist_ok=True)
2498
+ # export_meshes(meshes, output_directory, base_filename)
2500
2499
 
2501
- # Create and save multiple views
2502
- print("Creating multiple views...")
2503
2500
  # Create output directory if it doesn't exist
2504
2501
  os.makedirs(output_directory, exist_ok=True)
2505
2502
 
2503
+ # After creating the meshes and before visualization
2504
+ if save_obj:
2505
+ output_directory = kwargs.get('output_directory', 'output')
2506
+ output_file_name = kwargs.get('output_file_name', 'voxcity_mesh')
2507
+ obj_path, mtl_path = save_obj_from_colored_mesh(meshes, output_directory, output_file_name)
2508
+ print(f"Saved mesh files to:\n {obj_path}\n {mtl_path}")
2509
+
2506
2510
  if show_views:
2511
+ # Create and save multiple views
2512
+ print("Creating multiple views...")
2507
2513
  image_files = create_multi_view_scene(meshes, output_directory=output_directory,
2508
2514
  projection_type=projection_type,
2509
2515
  distance_factor=distance_factor)
@@ -2516,14 +2522,8 @@ def visualize_voxcity_with_sim_meshes(voxel_array, meshsize, custom_meshes=None,
2516
2522
  plt.title(view_name.replace('_', ' ').title(), pad=20)
2517
2523
  plt.axis('off')
2518
2524
  plt.show()
2519
- plt.close()
2520
-
2521
- # After creating the meshes and before visualization
2522
- if save_obj:
2523
- output_directory = kwargs.get('output_directory', 'output')
2524
- output_file_name = kwargs.get('output_file_name', 'voxcity_mesh')
2525
- obj_path, mtl_path = save_obj_from_colored_mesh(meshes, output_directory, output_file_name)
2526
- print(f"Saved mesh files to:\n {obj_path}\n {mtl_path}")
2525
+ plt.close()
2526
+
2527
2527
 
2528
2528
  def visualize_building_sim_results(voxel_array, meshsize, building_sim_mesh, **kwargs):
2529
2529
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: voxcity
3
- Version: 0.5.23
3
+ Version: 0.5.24
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
  Author-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
6
6
  Maintainer-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes