Support pinned historic OSM snapshots for reproducibility
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, yaml
- Lĩnh vực
- data-engineering
Hướng nghiên cứu
Start by reading workflow/scripts/_schema.py and the existing retrieve.target_date handling, then compare the proposed osm_data config with the referenced PyPSA-Earth PR #2005 and the historical test config in pypsa-earth-osm. First resolve the open questions about the historical-data backend, date granularity and output metadata. Done means historical snapshots are validated and stored separately, the historical path runs in CI, and the docs explain reproducibility and its limits.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
Grid models built from "latest" OSM data cannot be reproduced. OSM changes continuously, so the same config run a month apart yields a different network. Results, validation and published studies cannot be re-run or compared against a fixed input. Pinning the OSM snapshot date is a prerequisite for reproducible runs.
Describe the solution you'd like
A config-selectable OSM data source with an explicit snapshot date, and snapshots stored per date so runs with different dates never overwrite each other.
Proposed config (same shape as the one already implemented in PyPSA-Earth):
osm_data:
source: historical # latest | historical | custom
target_date: "2020-01-01" # YYYY-MM-DD, required for historical
latest: current OSM data (default, unchanged behaviour)historical: data as oftarget_datecustom: user-provided.pbfand optional pre-filtered power files
Raw data is stored per snapshot, e.g. data/osm/<subdir>/ where <subdir> is YYYYMM, latest or custom.
Acceptance criteria:
- Same config + same
target_dategives identical raw OSM input across runs - Different dates are stored in separate directories and do not overwrite each other
-
target_dateis validated (format, not in the future, not before the earliest supported snapshot) - A test config exercising the historical path (e.g.
target_date: 2020-01-01) runs in CI - Docs describe the options and the reproducibility guarantee and its limits
Prior work (what is already done and can be reused)
pypsa-earth-osm- #5 historical OSM data integration (from earth-osm#63)
- #16 separate OSM data into date-specific directories
- #27 test config for historical data (
test/config.historical.yaml)
pypsa-earth- #2005 ports the feature with the
osm_dataconfig section above; requiresearth-osm>=3.0.2(open)
- #2005 ports the feature with the
Describe alternatives you've considered
- Pinning a downloaded
.pbfby hand (customsource): works, but the snapshot date is not recorded in the config and is easy to lose. - Committing/archiving the raw data per study: heavy, and does not scale across users.
Open questions
- Which backend should serve historic data here (earth-osm historical feature vs Geofabrik history files vs Overpass
date:queries)? Each has a different earliest date and coverage. - Should the resolved snapshot date be written into the output metadata so results are traceable?
- Granularity of the snapshot: month (
YYYYMM, as in PyPSA-Earth) or exact date?
Additional context
Related: retrieve.target_date in grid-builder (workflow/scripts/_schema.py) currently exists but is only honoured for retrieve.source: geofabrik, so the Overpass path is not reproducible today.
- Ngôn ngữ chính
- Python
- Star
- 7
- Fork
- 2
- 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
- Có mẫu pull request
- Không 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 PyPSA/grid-builder
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PyPSA/grid-builder#11 ·
-
Fail to import module via github urlCó thể đã có người làm @jnnr đã nhận 29 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
PyPSA/grid-builder#9 · 1 reaction ·
-
Bring-in regional line typesĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PyPSA/grid-builder#7 · 1 bình luận ·
-
needs discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
PyPSA/grid-builder#6 · 2 bình luận ·
-
RequirementsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PyPSA/grid-builder#2 ·
Tất cả issue của PyPSA/grid-builder
Issue tương tự
-
cli good first issue help wanted python up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
andrewsiah/agentswarm-data-tasks#36 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug drawing-tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cofade/open-garden-planner#827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Methodology pageĐang mởdocumentation site texts
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Krasnopjorovs/temet#66 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/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 76/100
Maintainer thường phản hồi trong vòng 1 ngày