Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gde_calculations_prototype
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • 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
  • LegacyLegacy
  • gde_calculations_prototype
  • Issues
  • #11
Closed
Open
Issue created Jun 04, 2021 by Cecilia Nievas@cnievasContributor

Some checks in GDE_check_consistency.py can fail due to rounding of decimal places in output CSV files

Problem noted when comparing the output OQ input files for v002 and version Ind30 of the Attica case study. Residential and commercial exposure were meant to be "the same" in both versions, but a discrepancy in the total number of buildings and size of the OQ input files was observed:

  1. Res_number_OBM_with_classes: 256,375.03 in Ind30 vs 256,373 in v002.
  2. Com_number_OBM_with_classes: 7,783.70 in Ind30 vs 7,784 in v002.

This discrepancy arises because the OQ input files are created using 5 decimal places now (v002 was created with str(), i.e. unspecified number of decimal places). This change was introduced in commit 0b89ddaf.

This is a matter of:

  1. How many decimal places is it reasonable to use for the OQ input files?
  2. How to check the consistency of outputs when rounding is involved (very small differences per building add up when the total number of buildings is large). Note that checking building by building takes a very long time.
Assignee
Assign to
Time tracking