-
Notifications
You must be signed in to change notification settings - Fork 20
Coding standards
Christian Ritter edited this page May 30, 2016
·
4 revisions
For clarity and easier use stick with the following rules when you code in python.
- The default units are cgs units. Convert in plotting routines to other units such as solar masses.
- Output variables are stored in the history class. As such they should be used in e.g. plotting functions.
- If you need constants check the constants class in chem_evol.py. If needed add further constants.
- Instead of tabs use spaces. Note: PYTHON 3 won't allow tabs anymore.