Python Wrapper |
Top Previous Next |
The Python package SIMPLACE
Installation
Run
pip install simplace
on the console to install simplace from pypi.python.org.
When you just want to update your existing installation, type
pip install simplace --upgrade
Example:
import simplace
sp = simplace.initSimplace('/ws/','/runs/simulation/','/out/')
simplace.openProject(sp, '/sol/Maize.sol.xml')
simid = simplace.createSimulation(sp, {'vLUE':3.2,'vSLA':0.023})
simplace.runSimulations(sp)
result = simplace.resultToList(simplace.getResult(sp,'YearOut',simid))
simplace.closeProject(sp)
print(result['BiomassModule.Yield'])