june.hdf5_savers.hospital_saver

june.hdf5_savers.hospital_saver.load_hospitals_from_hdf5(file_path: str, chunk_size=50000, domain_super_areas=None, super_areas_to_domain_dict: dict = None)

Loads companies from an hdf5 file located at file_path. Note that this object will not be ready to use, as the links to object instances of other classes need to be restored first. This function should be rarely be called oustide world.py

june.hdf5_savers.hospital_saver.restore_hospital_properties_from_hdf5(world: june.world.World, file_path: str, chunk_size=50000, domain_super_areas=None, domain_areas=None, super_areas_to_domain_dict: dict = None)
june.hdf5_savers.hospital_saver.save_hospitals_to_hdf5(hospitals: june.groups.hospital.Hospitals, file_path: str, chunk_size: int = 50000)

Saves the Hospitals object to hdf5 format file file_path. Currently for each person, the following values are stored: - id, n_beds, n_icu_beds, area, coordinates

companies

population object

file_path

path of the saved hdf5 file

chunk_size

number of people to save at a time. Note that they have to be copied to be saved, so keep the number below 1e6.