prepare#

andes.main.prepare(quick=False, incremental=False, models=None, precompile=False, nomp=False, **kwargs)[source]#

Run code generation.

Parameters:
fullbool

True to run full prep with formatted equations. Useful in interactive mode and during document generation.

ncpuint

Number of cores to be used for parallel processing.

clibool

True to indicate running from CLI. It will set quick to True if not full.

precompilebool

True to compile model function calls after code generation.

Returns:
System object if cli is False; exit_code 0 otherwise.

Warning

The default behavior has changed since v1.0.8: when cli is True and full is not True, quick code generation will be used.