write_db_results_multiple_json

write_db_results_multiple_json#

epiworldpy.write_db_results_multiple_json(results, base='results', directory=PosixPath('.'))[source]#

Write each result to its own JSON file.

Parameters:
  • results (dict) – Results from extract_database_results().

  • base (str, default "results") – Prefix of the file names; each file is named {base}-{key}.json.

  • directory (str or pathlib.Path, default ".") – Directory for the files, created if needed.

Return type:

None