voxcity 0.4.5__tar.gz → 0.4.7__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 (53) hide show
  1. {voxcity-0.4.5 → voxcity-0.4.7}/LICENSE +1 -1
  2. {voxcity-0.4.5 → voxcity-0.4.7}/PKG-INFO +6 -2
  3. {voxcity-0.4.5 → voxcity-0.4.7}/README.md +3 -0
  4. {voxcity-0.4.5 → voxcity-0.4.7}/pyproject.toml +1 -1
  5. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/grid.py +4 -1
  6. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity.egg-info/PKG-INFO +6 -2
  7. {voxcity-0.4.5 → voxcity-0.4.7}/AUTHORS.rst +0 -0
  8. {voxcity-0.4.5 → voxcity-0.4.7}/CONTRIBUTING.rst +0 -0
  9. {voxcity-0.4.5 → voxcity-0.4.7}/HISTORY.rst +0 -0
  10. {voxcity-0.4.5 → voxcity-0.4.7}/MANIFEST.in +0 -0
  11. {voxcity-0.4.5 → voxcity-0.4.7}/docs/Makefile +0 -0
  12. {voxcity-0.4.5 → voxcity-0.4.7}/docs/archive/README.rst +0 -0
  13. {voxcity-0.4.5 → voxcity-0.4.7}/docs/authors.rst +0 -0
  14. {voxcity-0.4.5 → voxcity-0.4.7}/docs/conf.py +0 -0
  15. {voxcity-0.4.5 → voxcity-0.4.7}/docs/index.rst +0 -0
  16. {voxcity-0.4.5 → voxcity-0.4.7}/docs/make.bat +0 -0
  17. {voxcity-0.4.5 → voxcity-0.4.7}/setup.cfg +0 -0
  18. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/__init__.py +0 -0
  19. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/__init__.py +0 -0
  20. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/eubucco.py +0 -0
  21. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/gee.py +0 -0
  22. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/mbfp.py +0 -0
  23. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/oemj.py +0 -0
  24. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/omt.py +0 -0
  25. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/osm.py +0 -0
  26. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/overture.py +0 -0
  27. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/downloader/utils.py +0 -0
  28. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/exporter/__init_.py +0 -0
  29. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/exporter/envimet.py +0 -0
  30. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/exporter/magicavoxel.py +0 -0
  31. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/exporter/obj.py +0 -0
  32. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/generator.py +0 -0
  33. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/__init_.py +0 -0
  34. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/draw.py +0 -0
  35. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/mesh.py +0 -0
  36. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/network.py +0 -0
  37. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/polygon.py +0 -0
  38. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/geoprocessor/utils.py +0 -0
  39. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/simulator/__init_.py +0 -0
  40. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/simulator/solar.py +0 -0
  41. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/simulator/utils.py +0 -0
  42. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/simulator/view.py +0 -0
  43. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/utils/__init_.py +0 -0
  44. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/utils/lc.py +0 -0
  45. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/utils/material.py +0 -0
  46. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/utils/visualization.py +0 -0
  47. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity/utils/weather.py +0 -0
  48. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity.egg-info/SOURCES.txt +0 -0
  49. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity.egg-info/dependency_links.txt +0 -0
  50. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity.egg-info/requires.txt +0 -0
  51. {voxcity-0.4.5 → voxcity-0.4.7}/src/voxcity.egg-info/top_level.txt +0 -0
  52. {voxcity-0.4.5 → voxcity-0.4.7}/tests/__init__.py +0 -0
  53. {voxcity-0.4.5 → voxcity-0.4.7}/tests/voxelcity.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022, winstonyym
3
+ Copyright (c) 2025, kunifujiwara
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: voxcity
3
- Version: 0.4.5
3
+ Version: 0.4.7
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>
@@ -58,6 +58,7 @@ Requires-Dist: coverage; extra == "dev"
58
58
  Requires-Dist: mypy; extra == "dev"
59
59
  Requires-Dist: pytest; extra == "dev"
60
60
  Requires-Dist: ruff; extra == "dev"
61
+ Dynamic: license-file
61
62
 
62
63
  [![PyPi version](https://img.shields.io/pypi/v/voxcity.svg)](https://pypi.python.org/pypi/voxcity)
63
64
  [![Python versions](https://img.shields.io/pypi/pyversions/voxcity.svg)](https://pypi.org/project/voxcity/)
@@ -66,6 +67,9 @@ Requires-Dist: ruff; extra == "dev"
66
67
  [![Downloads](https://pepy.tech/badge/voxcity)](https://pepy.tech/project/voxcity)
67
68
  <!-- [![License: CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-sa/4.0/) -->
68
69
 
70
+ <p align="center">
71
+ Tutorial preview: <a href="https://colab.research.google.com/drive/1Lofd3RawKMr6QuUsamGaF48u2MN0hfrP?usp=sharing">[Google Colab]</a>
72
+ </p>
69
73
 
70
74
  # VoxCity
71
75
 
@@ -5,6 +5,9 @@
5
5
  [![Downloads](https://pepy.tech/badge/voxcity)](https://pepy.tech/project/voxcity)
6
6
  <!-- [![License: CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-sa/4.0/) -->
7
7
 
8
+ <p align="center">
9
+ Tutorial preview: <a href="https://colab.research.google.com/drive/1Lofd3RawKMr6QuUsamGaF48u2MN0hfrP?usp=sharing">[Google Colab]</a>
10
+ </p>
8
11
 
9
12
  # VoxCity
10
13
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "voxcity"
3
- version = "0.4.05"
3
+ version = "0.4.7"
4
4
  requires-python = ">=3.10,<3.13"
5
5
  classifiers = [
6
6
  "Programming Language :: Python :: 3.10",
@@ -3,6 +3,7 @@ This module provides functions for creating and manipulating grids of building h
3
3
  """
4
4
 
5
5
  import numpy as np
6
+ import pandas as pd
6
7
  import os
7
8
  from shapely.geometry import Polygon, box
8
9
  from scipy.ndimage import label, generate_binary_structure
@@ -575,8 +576,10 @@ def create_building_height_grid_from_gdf_polygon(
575
576
  height = complement_height
576
577
 
577
578
  min_height = row.get('min_height', 0)
579
+ if pd.isna(min_height):
580
+ min_height = 0
578
581
  is_inner = row.get('is_inner', False)
579
- feature_id = row.get('id', idx_b)
582
+ feature_id = row.get('id', row.get('building_id', idx_b))
580
583
 
581
584
  # Fix invalid geometry (buffer(0) or simplify if needed)
582
585
  # Doing this once per building avoids repeated overhead per cell.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: voxcity
3
- Version: 0.4.5
3
+ Version: 0.4.7
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>
@@ -58,6 +58,7 @@ Requires-Dist: coverage; extra == "dev"
58
58
  Requires-Dist: mypy; extra == "dev"
59
59
  Requires-Dist: pytest; extra == "dev"
60
60
  Requires-Dist: ruff; extra == "dev"
61
+ Dynamic: license-file
61
62
 
62
63
  [![PyPi version](https://img.shields.io/pypi/v/voxcity.svg)](https://pypi.python.org/pypi/voxcity)
63
64
  [![Python versions](https://img.shields.io/pypi/pyversions/voxcity.svg)](https://pypi.org/project/voxcity/)
@@ -66,6 +67,9 @@ Requires-Dist: ruff; extra == "dev"
66
67
  [![Downloads](https://pepy.tech/badge/voxcity)](https://pepy.tech/project/voxcity)
67
68
  <!-- [![License: CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-sa/4.0/) -->
68
69
 
70
+ <p align="center">
71
+ Tutorial preview: <a href="https://colab.research.google.com/drive/1Lofd3RawKMr6QuUsamGaF48u2MN0hfrP?usp=sharing">[Google Colab]</a>
72
+ </p>
69
73
 
70
74
  # VoxCity
71
75
 
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
File without changes