write_results#

pharmpy.tools.write_results(results, path, compression=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

  • compression (bool) – True to compress the file. Not applicable to csv file

  • csv (bool) – Save as csv file