Use a stable cache for input data
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
调研方向
首先检查 Snakemake 的获取规则和列出的远程资源,然后确定哪些非 git 输入需要稳定的缓存副本,以及许可证是否允许再分发。当工作流输入仍可复现,并且原始远程资源不可用时可以使用本地缓存的文件时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the feature you'd like to see
Harden input data retrieval steps by using a stable cache such as data.pypsa.org for all workflow data inputs not version-controlled via git.
Motivation
We do use large parts from the PyPSA-DE workflow in PyPSA-AT and run tests frequently on private pipelines and on public github actions. If remote files are not available from remote resources, the snakemake workflow fails early. This is the case even for data files that already exist in a local cache, because the retrieval rules check for the existence of remote resources regardless.
Another pro for using a cache is reproducibility: Input files may change e.g. the .xlsx files, and older results may turn irreproducible on input data updates.
List of resources I know of that sometimes fail
- https://geodata.ucdavis.edu/gadm/gadm4.1/json/gadm41_DEU_1.json.zip
- https://fnb-gas.de/wp-content/uploads/2024/07/2024_07_22_Anlage3_FNB_Massnahmenliste_Neubau.xlsx
- https://fnb-gas.de/wpcontent/uploads/2024/07/2024_07_22_Anlage2_Leitungsmeldungen_weiterer_potenzieller_Wasserstoffnetzbetreiber.xlsx
- https://fnb-gas.de/wp-content/uploads/2024/07/2024_07_22_Anlage4_FNB_Massnahmenliste_Umstellung.xlsx
- https://pubdb.bfe.admin.ch/de/publication/download/12361
Are there reasons for the resources not being copied to a cache? Maybe licensing restricts storing copies?
- 主要语言
- Python
- 星标
- 54
- 派生
- 36
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PyPSA/pypsa-de 的其他 Issue
-
needs triage
难度 4/5 3-5 天 新手友好度 45/100
-
needs triage
难度 5/5 一周以上 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
bug
难度 4/5 3-5 天 新手友好度 30/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 1/5 1-3 小时 新手友好度 89/100
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
smk762/argus-atlas#97 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
xdslproject/xdsl#6842 ·
维护者通常 1 天内回复