emodpy_hiv.countries.converting.reformat_json module#

emodpy_hiv.countries.converting.reformat_json.format_sort_round_json(current_filename: str | Path, new_filename: str | Path)[source]#

A function that takes a JSON file and reformats it to be sorted and rounded to 9 digits. This is helpful when comparing the new and old models. The function will create a new file.

Parameters:
  • current_filename (str or Path) – The name of the JSON file to be converted.

  • new_filename (str or Path) – The name of the new JSON file to be created.