write_model#
- pharmpy.modeling.write_model(model, path='', force=True)[source]#
Write model code to file
- Parameters:
model (Model) – Pharmpy model
path (str) – Destination path
force (bool) – Force overwrite, default is True
- Returns:
Model – Pharmpy model object
Example
>>> from pharmpy.modeling import load_example_model, write_model >>> model = load_example_model("pheno") >>> write_model(model)