pygom
pygom copied to clipboard
Graphing
Issues around producing the flow diagram from the model.
Need to revisit use of graphvis. Graphvis is probably the best way to get these flow diagrams but installation is a bit of a pain on Windows. (Could this be solved with better documentation?)
After installing graphviz and graphviz-python through conda you can do something like
if sys.platform == 'win32':
os.environ['PATH'] += os.pathsep + os.environ['CONDA_PREFIX'] + r'\Library\bin\graphviz'
on Windows before any imports to make graphviz work. This is not a sufficiently robust solution to be added to the codebase but might form the basis for one?
Obs. you just need to install graphviz through your package manager on Linux and the Python bindings either through pip or the package manager and it "just works".