allow user to ignore missing Seedlings files
@kalenkovich 已经在做这个了。
开始于 2021年12月24日。
评估
这个 Issue 还没有评估数据。
描述
Right now, all the get_xxx(child, month) functions in blabpy.seedlings.paths throw an error when a file is missing. This causes the functions that operate on multiple files to fail a bit too early sometimes: the user will know that a single file is missing while it would be more useful to have a list of all the files that are missing. For example, blabpy.seedlings.pipeline.merge_all_annotations_with_basic_level operates on all csv files exported from cha/opf files that it finds in the given folder. For each of them, it finds a corresponding file with basic levels already filled. If such a file is missing, there will be a single FileNotFound exception thrown. Wrapping in try-except is verbous and the actual paths would have to be extracted from the error messages. A better option would be to have an extra argument ignore_file_not_found that would default to False. To avoid repetition, both adding this argument and checking that the file exists can be relegated to a decorator function.
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BergelsonLab/blabpy 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 45/100
BergelsonLab/blabpy#35 ·
-
难度 3/5 1-2 天 新手友好度 35/100
BergelsonLab/blabpy#34 · 1 条评论 ·
-
add `vihi annotation update-links`可能重新可做 @kalenkovich 于 614 天前认领,目前没有进行中的 PR。 未关闭
BergelsonLab/blabpy#32 · 已指派 1 人 ·
-
good first issue
难度 2/5 1-3 小时 新手友好度 45/100
BergelsonLab/blabpy#31 ·
-
avoid printing traceback for console script errors可能重新可做 @kalenkovich 于 1099 天前认领,目前没有进行中的 PR。 未关闭
BergelsonLab/blabpy#29 · 已指派 1 人 ·
查看 BergelsonLab/blabpy 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
PedestrianDynamics/pyFDS-Evac#343 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
theskumar/python-dotenv#708 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 2 天内回复
-
Docs Timedelta
难度 2/5 1-3 小时 新手友好度 72/100
pandas-dev/pandas#69919 ·
维护者通常 1 天内回复
-
API documentation
难度 2/5 1-3 小时 新手友好度 72/100
zephyrproject-rtos/west#1009 · 2 条评论 ·
维护者通常 3 天内回复