voxcity 0.6.19__py3-none-any.whl → 0.6.21__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.
- voxcity/downloader/citygml.py +32 -18
- voxcity/exporter/obj.py +1405 -1405
- voxcity/generator.py +1301 -1291
- voxcity/simulator/solar.py +12 -2
- voxcity/utils/visualization.py +2734 -2691
- voxcity/utils/weather.py +68 -6
- {voxcity-0.6.19.dist-info → voxcity-0.6.21.dist-info}/METADATA +2 -2
- {voxcity-0.6.19.dist-info → voxcity-0.6.21.dist-info}/RECORD +11 -11
- {voxcity-0.6.19.dist-info → voxcity-0.6.21.dist-info}/WHEEL +0 -0
- {voxcity-0.6.19.dist-info → voxcity-0.6.21.dist-info}/licenses/AUTHORS.rst +0 -0
- {voxcity-0.6.19.dist-info → voxcity-0.6.21.dist-info}/licenses/LICENSE +0 -0
voxcity/simulator/solar.py
CHANGED
|
@@ -1007,10 +1007,15 @@ def get_global_solar_irradiance_using_epw(
|
|
|
1007
1007
|
output_dir=output_dir,
|
|
1008
1008
|
max_distance=max_distance,
|
|
1009
1009
|
extract_zip=True,
|
|
1010
|
-
load_data=True
|
|
1010
|
+
load_data=True,
|
|
1011
|
+
allow_insecure_ssl=kwargs.get("allow_insecure_ssl", False),
|
|
1012
|
+
allow_http_fallback=kwargs.get("allow_http_fallback", False),
|
|
1013
|
+
ssl_verify=kwargs.get("ssl_verify", True)
|
|
1011
1014
|
)
|
|
1012
1015
|
|
|
1013
1016
|
# Read EPW data
|
|
1017
|
+
if epw_file_path is None:
|
|
1018
|
+
raise RuntimeError("EPW file path is None. Set 'epw_file_path' or enable 'download_nearest_epw' and ensure network succeeds.")
|
|
1014
1019
|
df, lon, lat, tz, elevation_m = read_epw_for_solar_simulation(epw_file_path)
|
|
1015
1020
|
if df.empty:
|
|
1016
1021
|
raise ValueError("No data in EPW file.")
|
|
@@ -2030,10 +2035,15 @@ def get_building_global_solar_irradiance_using_epw(
|
|
|
2030
2035
|
output_dir=output_dir,
|
|
2031
2036
|
max_distance=max_distance,
|
|
2032
2037
|
extract_zip=True,
|
|
2033
|
-
load_data=True
|
|
2038
|
+
load_data=True,
|
|
2039
|
+
allow_insecure_ssl=kwargs.get("allow_insecure_ssl", False),
|
|
2040
|
+
allow_http_fallback=kwargs.get("allow_http_fallback", False),
|
|
2041
|
+
ssl_verify=kwargs.get("ssl_verify", True)
|
|
2034
2042
|
)
|
|
2035
2043
|
|
|
2036
2044
|
# Read EPW data
|
|
2045
|
+
if epw_file_path is None:
|
|
2046
|
+
raise RuntimeError("EPW file path is None. Set 'epw_file_path' or enable 'download_nearest_epw' and ensure network succeeds.")
|
|
2037
2047
|
df, lon, lat, tz, elevation_m = read_epw_for_solar_simulation(epw_file_path)
|
|
2038
2048
|
if df.empty:
|
|
2039
2049
|
raise ValueError("No data in EPW file.")
|