Aggregate Risk Curves unable to present loss exceedance curves
alejocaldeGEM opened this issue · 2 comments
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).
Requires OQ Engine >= v3.16.2