set_name#
- pharmpy.modeling.set_name(model, new_name)[source]#
Set name of model object
- Parameters:
model (Model) – Pharmpy model
new_name (str) – New name of model
- Returns:
Model – Pharmpy model object
Example
>>> from pharmpy.modeling import set_name, load_example_model >>> model = load_example_model("pheno") >>> model.name 'pheno' >>> model = set_name(model, "run2") >>> model.name 'run2'