Skip to content

Python package to interact with the modeling framework Simplace

License

Notifications You must be signed in to change notification settings

gk-crop/simplace_pypkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See the documentation at https://simplace.readthedocs.io/

Run and control simulations in the simulation framework Simplace.

You need to install the Simplace simulation framework https://www.simplace.net/

Example usage:

>>> import simplace
>>> sh = simplace.initSimplace('/ws/','/runs/simulation/','/out/')
>>> simplace.openProject(sh, '/sol/Maize.sol.xml')
>>> simid = simplace.createSimulation(sh, {'vLUE':3.2,'vSLA':0.023})
>>> simplace.runSimulations(sh)
>>> result = simplace.resultToList(simplace.getResult(sh,'YearOut',simid))
>>> simplace.closeProject(sh)
>>> print(result['BiomassModule.Yield'])
805.45

The module requires Java >= 11.0 and python packages numpy and JPype1.

About

Python package to interact with the modeling framework Simplace

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages