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

AAL Statistics output for classical_risk/case_2 not exportable #9579

Closed
raoanirudh opened this issue Apr 8, 2024 · 0 comments · Fixed by #9584
Closed

AAL Statistics output for classical_risk/case_2 not exportable #9579

raoanirudh opened this issue Apr 8, 2024 · 0 comments · Fixed by #9584
Assignees
Milestone

Comments

@raoanirudh
Copy link
Member

Trying to export the Average Asset Losses Statistics output for qa_tests_data/classical_risk/case_2 results in the following error:

Traceback (most recent call last):
  File "oq-engine/openquake/engine/export/core.py", line 64, in export_from_db
    exported = export(output_key, dstore)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "oq-engine/openquake/baselib/general.py", line 609, in __call__
    return self[key](obj, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "oq-engine/openquake/calculators/export/risk.py", line 206, in export_avg_losses
    name, value, rlzs_or_stats = _get_data(
                                 ^^^^^^^^^^
  File "oq-engine/openquake/calculators/export/risk.py", line 177, in _get_data
    weights = dstore['weights'][()]
              ~~~~~~^^^^^^^^^^^
  File "oq-engine/openquake/commonlib/datastore.py", line 517, in __getitem__
    raise KeyError('No %r found in %s' % (key, self))
KeyError: "No 'weights' found in <DataStore oqdata/calc_1.hdf5 open>"

Reported on the mailing list: https://groups.google.com/g/openquake-users/c/3xVJGxqfZlI

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

Successfully merging a pull request may close this issue.

2 participants