ModelEntry#

class pharmpy.workflows.ModelEntry(model, parent=None, modelfit_results=None, simulation_results=None, log=None)[source]#

Bases: Immutable

Model with different modelfit related attributes.

Object that can connect a model object to results from a modelfit. Attributes that can be connected to the model object are the modelfit results, the parent model, and the log.

A ModelEntry object can be created with only the model object, and results can be attached as a separate step.

Parameters:
  • model (Model) – Pharmpy model

  • parent (Model) – Pharmpy model that is parent to model argument (optional)

  • modelfit_results (ModelfitResults) – Modelfit results connected to model argument (optional)

  • log (Log) – Log connected to model argument (optional)

Attributes Summary

log

Log of main model

model

Model object

modelfit_results

Modelfit results of main model

parent

Parent model of main model

simulation_results

Simulation results of main model

Methods Summary

attach_results(modelfit_results[, ...])

Attaches modelfit results and possible log to ModelEntry objects

create(model[, parent, modelfit_results, ...])

Attributes Documentation

log#

Log of main model

model#

Model object

modelfit_results#

Modelfit results of main model

parent#

Parent model of main model

simulation_results#

Simulation results of main model

Methods Documentation

attach_results(modelfit_results, simulation_results=None, log=None)[source]#

Attaches modelfit results and possible log to ModelEntry objects

classmethod create(model, parent=None, modelfit_results=None, simulation_results=None, log=None)[source]#