The core function is
ExposureModelESRM20.get_data_units_names(). It is called once the names of all exposure entities and the types of data units for which their exposure models are defined for different occupancy cases have been retrieved.
Three parameters were added to the
Configuration file to allow for this functionality to run:
data_pathname: path to the directory containing the model data files (CSV in the case of ESRM20)
exposure_entities_to_run: we might want to run a sub-set. If “all”, then the code updates the value of
exposure_entities_to_runto be filled with the names of all exposure entities (retrieved by the code in the previous step)
occupancies_to_run: we might want to run some occupancies but not others. “Industrial” is not yet supported in this version (the feature to deal with “cell” data unit types or a corresponding workaround would be needed).
Though its output is an attribute of
get_data_units_names() is a method of
ExposureModelESRM20 because its characteristics and functionalities depend on the aggregated exposure model, not the exposure entity.
Tests have been added accordingly.