Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError (0_exposure_count) #5115

Open
2 tasks
Candiag opened this issue Nov 9, 2021 · 0 comments
Open
2 tasks

KeyError (0_exposure_count) #5115

Candiag opened this issue Nov 9, 2021 · 0 comments

Comments

@Candiag
Copy link

Candiag commented Nov 9, 2021

Problem

When I run the plugin I get a KeyError (0_exposure_count)

Copy/paste some InaSAFE logs here if it was an error.
 1. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/impact_function/impact_function.py", line 1449, in run self._run()
          2. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/utilities/profiling.py", line 126, in with_profiling ret = fn(*args, **kwargs)
          3. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/impact_function/impact_function.py", line 1704, in _run self.summary_calculation()
          4. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/utilities/profiling.py", line 126, in with_profiling ret = fn(*args, **kwargs)
          5. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/impact_function/impact_function.py", line 2466, in summary_calculation self._aggregation_summary = aggregation_summary(
          6. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/utilities/profiling.py", line 126, in with_profiling ret = fn(*args, **kwargs)
          7. In file "/Users/candiag/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe/gis/vector/summary_2_aggregation.py", line 101, in aggregation_summary value = area[name_field]
         <!---

Logs in QGIS are available in the bottom right corner on the bubble icon.
Then open the InaSAFE tab and copy/paste some logs.
-->

Expected Behaviour

Determine the number of structures that will be impacted in the event of a flood

Environment

  • InaSAFE : 5.0.3
  • QGIS : 3.22.0
  • OS : macOS Big Sur
  • Data used :9 November 2021
    • Exposure : Structure
    • Hazard : Flood
    • Aggregation : None
    • Extent : Intersection of hazard, exposure and current view

Checklist:

  • Did you try to run it in debug mode ? No
  • Is the data available ?
    • If yes, where (BTSync, data.inasafe.org, zip) ?

Proposed Solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant