pharmpy.modeling.reset_dataset#

pharmpy.modeling.reset_dataset(model)[source]#

Use Pharmpy dataset instead of original file

The parsed dataset will be written down when doing e.g. estimation or writing files instead of the original dataset file

Removes path and provenance from DataInfo.

Note: Use this to get same behavior as Pharmpy<=2.1.1

Parameters:

model (Model) – Pharmpy model

Returns:

Model – Updated Pharmpy model

Example

>>> from pharmpy.modeling import load_example_model, reset_dataset
>>> model = load_example_model("pheno")
>>> model = reset_dataset(model)