InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Use idiomatic Python throughout the examples

未关闭
#199 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
59
派生
70
平均合并
1 天 15 小时
30 天内合并 PR
12

描述

To improve example readability and improve familiarity to Pythonistas, we should use idiomatic Python throughout the examples. In the past we had tried to keep the C++ and Python similar, but it is evident that this is less useful than idiomatic Python that people will use in practice.

This means:

- Using `snake_case` instead of `camelCase` for variable names
- Not using type declarations, unless required
- Using the Pythonic functional interface to filters when possible
- Not hardcoding types or dimensions when possible

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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