emodpy_hiv.countries.converting.new_demographics_old_format module#

emodpy_hiv.countries.converting.new_demographics_old_format.get_old_demographic_filenames(add_extension: bool = True)[source]#
emodpy_hiv.countries.converting.new_demographics_old_format.create_old_demographic_files(country_name: str, output_dir: str | Path | None = None, suffix: str | None = None)[source]#

A function that outputs the demographics files for the Zambia model in the old format of four overlay files: Demographics.json, PFA_Overlay.json, Accessibility_and_Risk_IP_Overlay.json, Risk_Assortivity_Overlay.json. The files are created in the output_dir directory. This can be helpful wnen comparing the new and old models.

Parameters:
  • output_dir (str or Path) – The directory where the files will be created. If None, the current directory will be used.

  • suffix (str) – A suffix to add to the file names. If None, no suffix will be added.