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

Aggregate Risk Curves unable to present loss exceedance curves #809

Closed
alejocaldeGEM opened this issue Feb 6, 2023 · 2 comments
Closed

Comments

@alejocaldeGEM
Copy link

Issue

In the attached calculation, if the user pulses the button for Show that corresponds to the Aggregated Risk Curves output, the plug-in fails with the following message:

Traceback (most recent call last): File "C:\Users/acalderon/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\drive_oq_engine_server_dialog.py", line 974, in self.on_output_action_btn_clicked( File "C:\Users/acalderon/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\drive_oq_engine_server_dialog.py", line 987, in on_output_action_btn_clicked self.viewer_dock.load_no_map_output( File "C:\Users/acalderon/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\viewer_dock.py", line 737, in load_no_map_output self.load_agg_curves(calc_id, session, hostname, output_type) File "C:\Users/acalderon/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\viewer_dock.py", line 921, in load_agg_curves tag_values = self.tags[tag_name]['values'].keys() TypeError: unhashable type: 'list'

OQ version 3.16.0
Plug-in version 3.15.2
QGIS version 3.22

Intended Behavior

Before this button would plot in the OpenQuake Data Viewer the total loss exceedance curve for any risk metric (structural non-structural occupants) in Absolute or Relative terms. If the user set the parameter individual_curves = True in the job.ini, the button would plot the individual curves corresponding to each of the realizations of the hazard logic_tree (see the image provided).

How to replicate the error:
error1

Full traceback:
trace_back

Intended Behavior:
intended_behavior

event_based_risk.zip

@ptormene
Copy link
Member

Fixed in #813

@ptormene
Copy link
Member

Requires OQ Engine >= v3.16.2

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

Successfully merging a pull request may close this issue.

2 participants