Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gde-importer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Dynamic Exposure
  • Global Dynamic Exposure
  • gde-importer
  • Merge requests
  • !6

Added functionality to read names of data units

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Cecilia Nievas requested to merge feature/dataunitsnames into master Jul 06, 2021
  • Overview 18
  • Commits 1
  • Pipelines 5
  • Changes 17

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

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/dataunitsnames