svir package

Subpackages

Submodules

svir.irmt module

class svir.irmt.Irmt(iface)[source]

Bases: object

add_menu_item(action_name, icon_path, label, corresponding_method, enable=False, add_to_layer_actions=False, layers_type=0, set_checkable=False, set_checked=False, submenu=None, add_to_toolbar=False)[source]

Add an item to the OpenQuake IRMT menu and a corresponding toolbar icon

Parameters:
  • icon_path – path of the icon associated to the action
  • label – name of the action, visible to the user
  • corresponding_method – method called when the action is triggered
clear_layer_suppl_info(layer_id)[source]
current_layer_changed(layer=None)[source]
download_layer()[source]

Open dialog to select one of the integrated risk projects available on the OQ-Platform and download it as a qgis project

drive_oq_engine_server(show=True)[source]
experimental_enabled()[source]
get_ipt_checksum()[source]
get_ipt_dir()[source]
static get_menu(parent, title)[source]
import_sv_variables()[source]

Open a modal dialog to select socioeconomic variables to download from the openquake platform

initGui()[source]
instantiate_taxonomy_dlg()[source]
ipt()[source]
is_iri_computable(proj_def)[source]

Check if is it possible to compute the integrated risk index, depending on the current project definition structure.

is_iri_renderable(proj_def)[source]

Check if is it possible to render the integrated risk index, depending on the current project definition structure.

is_ri_computable(proj_def)[source]

Check if is it possible to compute the risk index, depending on the current project definition structure.

is_ri_renderable(proj_def)[source]

Check if is it possible to render the risk index, depending on the current project definition structure.

is_svi_computable(proj_def)[source]

Check if is it possible to compute the social vulnerability index, depending on the current project definition structure.

is_svi_renderable(proj_def)[source]

Check if is it possible to render the social vulnerability index, depending on the current project definition structure.

layers_added()[source]
layers_removed(layer_ids)[source]
notify_added_attrs_and_discarded_feats(added_attrs_ids, discarded_feats)[source]

Notify through the message bar that new attributes have been added to the layer and specify if missing or invalid values were found.

on_drive_oq_engine_server_btn_clicked()[source]
on_same_fs(checksum_file_path, local_checksum)[source]
project_definitions_manager()[source]

Open a dialog to manage one or multiple project definitions for the selected layer.

recovery_modeling()[source]
recovery_settings()[source]
redraw_ir_layer(data)[source]

If the user has explicitly selected a field to use for styling, use it, otherwise attempt to show the IRI, or the SVI, or the RI

reset_engine_login()[source]
show_manual()[source]
show_settings()[source]

Open a dialog to specify the connection settings used to interact with the OpenQuake Platform

taxonomy()[source]
taxtweb()[source]
toggle_dock_visibility()[source]

Show or hide the dock widget.

transform_attributes()[source]

A modal dialog is displayed to the user, enabling to transform one or more attributes of the active layer, using one of the available algorithms and variants

unload()[source]

Remove all plugin’s actions and corresponding buttons and connects

update_actions_status()[source]

Enable plugin’s actions depending on the current status of the workflow

upload()[source]

Open a dialog to upload the current project to the OpenQuake Platform

weight_data()[source]

Open a modal dialog to select weights in a d3.js visualization and to run integrated risk calculations.

svir.resources_rc module

svir.resources_rc.qCleanupResources()[source]
svir.resources_rc.qInitResources()[source]

Module contents

svir.classFactory(iface)[source]