Refactor of terminology retrieval of sections
还没有人认领这个 Issue。
评估
调研方向
首先定位 get_terminology_equivalent() 并阅读其调用方和 Section 模型。使用多个共享同一 type 的 Sections 重现所报告的情况,然后明确应如何通过其他属性选择术语,以及调用方期望得到什么结果,再定义完成标准。
由索引模型根据 Issue 内容生成。
描述
Currently the terminology equivalent of a Section is found in the given repository by matching the Section type.
This is problematic for the following reason: A Section type, as I understood it so far, is meant to group related Sections to an superior class. For example, two different Electrodes from different vendors with different Properties can be grouped via their type which could be 'electrode', even if the Section names are vendor-specific. In such a case, the function get_terminology_equivalent() will currently unfortunately only return the first Section with the type 'electrode' and ignore the second Section in the repository.
Of course one could provide always a unique Section type to avoid this, but I think then one could directly use the Section Name instead and the possibility an overall classification method for Sections is lost.
Instead one could return a list of all sections with the stated type and also use in addition other attributes to retrieve terminologies.
- 主要语言
- Python
- 星标
- 25
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
G-Node/python-odml 的其他 Issue
-
RDF
难度 2/5 1-3 小时 新手友好度 72/100
G-Node/python-odml#172 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
G-Node/python-odml#420 ·
-
难度 4/5 3-5 天 新手友好度 35/100
G-Node/python-odml#418 ·
-
难度 5/5 一周以上 新手友好度 25/100
G-Node/python-odml#417 · 8 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
G-Node/python-odml#406 ·
查看 G-Node/python-odml 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
-
Harmony OPeNDAP SubSetter (HOSS) Geographic LARC_CLOUD PREFIRE_SAT2_AUX-SAT R01 production
难度 2/5 1-3 小时 新手友好度 68/100
nasa/harmony-autotester#245 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
Deltares/imod-python#1928 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 66/100