Run a simulation using Python#
If you used Python to create or modify JSON files as shown in Example scripts to modify a configuration file, it may be convenient to invoke Eradication.exe to run a simulation from a Python script. One way of doing this is shown below using the subprocess package.
import subprocess
# specify paths
binary_path = "binDirectory\Eradication.exe"
input_path = "inputDirectory\Namawala\
# commission job
subprocess.call( [binary_path, "-C", "config.json", "--input", input_path] )
See Run a simulation using the command line for more information about the command options available for use with Eradication.exe.