write_results#

pharmpy.tools.write_results(results, path, lzma=False, csv=False)[source]#

Write results object to json (or csv) file

Note that the csv-file cannot be read into a results object again.

Parameters:
  • results (Results) – Pharmpy results object

  • path (Path) – Path to results file

  • lzma (bool) – True for lzma compression. Not applicable to csv file

  • csv (bool) – Save as csv file