Added functionality to read names of data units
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.
Two 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) -
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). We thus need this parameter to be incorporated to the config file now (alternatively we could hard-code to skip "industrial").
Though its output is an attribute of ExposureEntity
, 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.
\approve @fd
\fyi @ds