Internal Functions¶
This section documents the functions that are going on behaind the scenes, for the benefit of developers.
Special functions needed for model execution¶
These functions have no direct analog in the standard python data analytics stack, or require information about the internal state of the system beyond what is present in the function call. We provide them in a structure that makes it easy for the model elements to call.
functions.py
These are supports for functions that are included in modeling software but have no straightforward equivalent in python.
Building the python model file¶
These elements are used by the translator to construct the model from the interpreted results. It is technically possible to use these functions to build a model from scratch. But - it would be rather error prone.
builder.py Refactored May 26 2016 James Houghton james.p.houghton@gmail.com
This is code to assemble a pysd model once all of the elements have been translated from their native language into python compatible syntax. There should be nothing in this file that has to know about either vensim or xmile specific syntax.