bug: `add_edge_population` fails is there are two GHSL tiles overlapping the study area
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Hi @cbueth
When the study area overlaps more than one of the GHSL tiles, the function add_edge_population returns an error.
Here is a reprex for this behaviour
import osmnx as ox
from superblockify.population.approximation import add_edge_population
boundary_lat, boundary_lon = 41.8956456, 12.4655397
graph = ox.graph_from_point(
(boundary_lat, boundary_lon),
dist=500,
network_type='drive',
simplify=True
)
graph = ox.add_edge_speeds(graph)
graph = ox.add_edge_travel_times(graph)
graph = ox.project_graph(graph)
add_edge_population(graph, overwrite=True)
# 2026-04-01 12:21:54,478 | INFO | tessellation.py:101 | Calculating edge cells for graph with 165 edges.
# 2026-04-01 12:21:54,609 | INFO | tessellation.py:155 | Tessellated 132 edge cells in 0:00:00.
# 2026-04-01 12:21:54,672 | INFO | ghsl.py:129 | Using the GHSL raster tiles for the bounding box (1039130.3128053441, 4999534.908906185, 1040472.7243228266, 5000784.670403941).
# TypeError: invalid path or file: ['/home/juan/create-toy-nets/data/ghsl/GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R4_C20.tif', '/home/juan/create-toy-nets/data/ghsl/GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R5_C20.tif']
# Cell In[56], line 1
# ----> 1 add_edge_population(graph, overwrite=True)
To fix this, we will need to preprocess the tiles beforehand. The changes shouldn't be too long
- Ngôn ngữ chính
- Python
- Star
- 33
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BikeNetKit/superblockify
-
bug: Calculate rel_increase_comp independently of plottingCó thể đã có người làm @cbueth đã nhận 34 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
BikeNetKit/superblockify#136 · 2 bình luận ·
-
bug: gdal requiredĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
BikeNetKit/superblockify#135 · 3 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
BikeNetKit/superblockify#139 · 3 bình luận · 1 reaction ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
BikeNetKit/superblockify#138 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
BikeNetKit/superblockify#132 · 6 bình luận ·
Tất cả issue của BikeNetKit/superblockify
Issue tương tự
-
changelog investigate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ramnes/notion-sdk-py#423 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 89/100
duckdb/duckdb-web#7514 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jbacalso24/mimry#525 ·
Maintainer thường phản hồi trong vòng 1 ngày