InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Use idiomatic Python throughout the examples

Aperta
#199 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
59
Fork
70
Merge medio
1g 15h
PR unite (30g)
12

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.