Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

allow user to ignore missing Seedlings files

未关闭
#1 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BergelsonLab/blabpy 的其他 Issue

查看 BergelsonLab/blabpy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。