june.hdf5_savers.university_saver¶
-
june.hdf5_savers.university_saver.
load_universities_from_hdf5
(file_path: str, chunk_size: int = 50000, domain_areas=None)¶ Loads universities 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.university_saver.
restore_universities_properties_from_hdf5
(world, file_path: str, chunk_size: int = 50000, domain_areas=None)¶
-
june.hdf5_savers.university_saver.
save_universities_to_hdf5
(universities: june.groups.university.Universities, file_path: str)¶ Saves the universities object to hdf5 format file
file_path
. Currently for each person, the following values are stored: - id, n_pupils_max, age_min, age_max, sector, coordiantes- universities
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.