get_model_code#
- pharmpy.modeling.get_model_code(model)[source]#
Get the model code of the underlying model language as a string
- Parameters:
model (Model) – Pharmpy model
- Returns:
str – Model code
Examples
>>> from pharmpy.modeling import get_model_code, load_example_model >>> model = load_example_model("pheno") >>> code = get_model_code(model)