Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L losscalculator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container 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 ExposureDynamic Exposure
  • Global Dynamic ExposureGlobal Dynamic Exposure
  • losscalculator
  • Merge requests
  • !38

Refactoring losscalculator to adapt augmented exposure model files as input

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Tara Evaz Zadeh requested to merge feature/36-refactoring-losscalculator-to-adapt-augmented-exposure_models into master Mar 03, 2021
  • Overview 4
  • Commits 1
  • Pipelines 7
  • Changes 3

The calculator is now modified to use the augmented exposure model files in stead of the regular exposure model files.
Augmented exposure file format:

"id","lon","lat","taxonomy","number","structural","night","occupancy","admin_name","admin_ID","tile_id","tile_geometry","building_id","building_geometry"

Regular exposure file format:

id,lon,lat,taxonomy,number,structural,night,occupancy,admin_name,admin_ID,origin_id

(Please note that origin_id in the exposure model can be either a tile or a building id depending on the exposure type.) The major changes are:

  • Removal of three inputs to the calculator:
  1. --cell-ids
  2. geometries(But this input is needed to turn a regular exposure model into an augmented one)
  3. --exposure-type. The calculator does not care anymore if the input assets are either of building or cell type. The input exposure model can be a mixture of both assets now.
  • Deleting the function Add_cell_ids_to_building_exposure.py. This function was used to attach IDs of the cell that contained the building assets to the exposure files. An augmented exposure file now contains the cell-ids for building assets.

  • Modifying example folder and remove the extra inputs that are no more of use.

  • Removing the function origin_id_to_geometry(geometry_source, exposure_type) from losslib.py. The augmented exposure model files now have the geometries of either cells and buildings attached.

Please read #36 (closed) for more info.

\fyi @shinde @cnievas
\approve @fd @ds

Edited Mar 04, 2021 by Tara Evaz Zadeh
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/36-refactoring-losscalculator-to-adapt-augmented-exposure_models