switch-model / switch

A Modern Platform for Planning High-Renewable Power Systems
http://switch-model.org/
Other
130 stars 84 forks source link

Improved documentation #76

Open josiahjohnston opened 7 years ago

josiahjohnston commented 7 years ago

Our documentation needs a lot of improvement. Extensive documentation is embedded in docstrings of most modules and functions, but the pydoc results are crap. When learning the model, the Switch-Mexico team chose to read the code directly instead of the pydoc stuff and re-write the documentation in LaTeX.

Our working plans for cleaning this up are:

Note, the component documentation could either be in the doc argument of its definition, or assigned to an arbitrary attribute immediately after the definition. I'm pretty sure we will have to write some custom code to inspect the pyomo model, so assigning our extra documentation to our own extra attributes seems like a fairly clean solution.

josiahjohnston commented 5 years ago

Interim sources of well-formatted documentation:

Switch 2.0: A modern platform for planning high-renewable power systems and the appendix with more equations and tables linking mathematical symbols to names in the source code.