Skip to main content
. 2021 Jun 3;7:27. doi: 10.1038/s41540-021-00182-w

Fig. 2. Simple predator-prey model in a language without (PyDSTool) and with (Modelica) support for documentation strings.

Fig. 2

a While regular Python comments (#) can be used to annotate PyDSTool models, they are ignored by the compiler and are only useful when reading the code directly. b Modelica comments are part of the model syntax and can therefore be read by tools to, e.g., provide automated tooltips in dialogs and graphs or to enrich model summaries in databases.