svir.dialogs package¶
Submodules¶
svir.dialogs.attribute_selection_dialog module¶
-
class
svir.dialogs.attribute_selection_dialog.
AttributeSelectionDialog
(loss_layer, zonal_layer)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_AttributeSelctionDialog
Modal dialog giving to the user the possibility to select what are the attributes, in the loss layer and in the region layer, that contain the loss data and the region id
svir.dialogs.download_layer_dialog module¶
svir.dialogs.drive_oq_engine_server_dialog module¶
-
class
svir.dialogs.drive_oq_engine_server_dialog.
DriveOqEngineServerDialog
(iface, viewer_dock)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_DriveEngineServerDialog
Non-modal dialog to drive the OpenQuake Engine Server’s API. Through this, it is possible to run calculations, delete them, list them, visualize their outputs and loading them as vector layers.
svir.dialogs.load_dmg_by_asset_as_layer_dialog module¶
-
class
svir.dialogs.load_dmg_by_asset_as_layer_dialog.
LoadDmgByAssetAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='dmg_by_asset', path=None, mode=None, zonal_layer_path=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load dmg_by_asset from an oq-engine output, as layer
svir.dialogs.load_gmf_data_as_layer_dialog module¶
-
class
svir.dialogs.load_gmf_data_as_layer_dialog.
LoadGmfDataAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='gmf_data', path=None, mode=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load gmf_data from an oq-engine output, as layer
svir.dialogs.load_hcurves_as_layer_dialog module¶
-
class
svir.dialogs.load_hcurves_as_layer_dialog.
LoadHazardCurvesAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='hcurves', path=None, mode=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load hazard curves from an oq-engine output, as layer
svir.dialogs.load_hmaps_as_layer_dialog module¶
-
class
svir.dialogs.load_hmaps_as_layer_dialog.
LoadHazardMapsAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='hmaps', path=None, mode=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load hazard maps from an oq-engine output, as layer
svir.dialogs.load_losses_by_asset_as_layer_dialog module¶
-
class
svir.dialogs.load_losses_by_asset_as_layer_dialog.
LoadLossesByAssetAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='losses_by_asset', path=None, mode=None, zonal_layer_path=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load losses by asset from an oq-engine output, as layer
svir.dialogs.load_output_as_layer_dialog module¶
-
class
svir.dialogs.load_output_as_layer_dialog.
LoadOutputAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type=None, path=None, mode=None, zonal_layer_path=None)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_LoadOutputAsLayerDialog
Modal dialog to load an oq-engine output as layer
-
open_zonal_layer_dialog
()[source]¶ Open a file dialog to select the zonal layer to be loaded :returns: the zonal layer
-
svir.dialogs.load_ruptures_as_layer_dialog module¶
-
class
svir.dialogs.load_ruptures_as_layer_dialog.
LoadRupturesAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='ruptures', path=None, mode=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load ruptures from an oq-engine output, as layer
svir.dialogs.load_uhs_as_layer_dialog module¶
-
class
svir.dialogs.load_uhs_as_layer_dialog.
LoadUhsAsLayerDialog
(iface, viewer_dock, session, hostname, calc_id, output_type='uhs', path=None, mode=None)[source]¶ Bases:
svir.dialogs.load_output_as_layer_dialog.LoadOutputAsLayerDialog
Modal dialog to load uniform hazard spectra from an oq-engine output, as layer
svir.dialogs.plot_from_npz_dialog module¶
svir.dialogs.projects_manager_dialog module¶
svir.dialogs.recovery_modeling_dialog module¶
svir.dialogs.recovery_settings_dialog module¶
-
class
svir.dialogs.recovery_settings_dialog.
RecoverySettingsDialog
(iface)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_RecoverySettingsDialog
Modal dialog to set parameters for recovery modeling analysis.
-
restore_state
(restore_defaults=False)[source]¶ Reinstate the options based on the user’s stored session info.
-
svir.dialogs.select_input_layers_dialog module¶
-
class
svir.dialogs.select_input_layers_dialog.
SelectInputLayersDialog
(iface)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_SelectInputLayersDialog
Modal dialog allowing to select a raster or vector layer containing loss data points and a vector layer containing polygons that define the zones for which data need to be aggregated. When both are selected and are valid files, they can be loaded by clicking OK
-
static
attribute_selection
(loss_layer, zonal_layer)[source]¶ Open a modal dialog containing combo boxes, allowing the user to select what are the attribute names for * loss values (from loss layer) * zone id (from loss layer) * zone id (from zonal layer)
-
static
svir.dialogs.select_sv_variables_dialog module¶
svir.dialogs.settings_dialog module¶
-
class
svir.dialogs.settings_dialog.
SettingsDialog
(iface, irmt_main=None, parent=None)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_SettingsDialog
Dialog used to edit the plugin settings
-
restore_state
(restore_defaults=False)[source]¶ Reinstate the options based on the user’s stored session info.
Parameters: restore_defaults – if True, settings will be reset to the default values, instead of reading them from the user’s stored info
-
svir.dialogs.show_console_dialog module¶
svir.dialogs.show_full_report_dialog module¶
svir.dialogs.show_params_dialog module¶
svir.dialogs.transformation_dialog module¶
svir.dialogs.upload_dialog module¶
svir.dialogs.upload_settings_dialog module¶
-
class
svir.dialogs.upload_settings_dialog.
UploadSettingsDialog
(iface, suppl_info, file_stem)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_UploadSettingsDialog
Dialog allowing the user to set some of the fields that will be written into the metadata xml, including the selection of one of the available licenses. The user must click on a confirmation checkbox, before the uploading of the layer can be started.
svir.dialogs.viewer_dock module¶
-
class
svir.dialogs.viewer_dock.
ViewerDock
(iface, action)[source]¶ Bases:
PyQt4.QtGui.QDockWidget
,Ui_ViewerDock
-
redraw
(selected, deselected, _)[source]¶ Accepting parameters from QgsVectorLayer selectionChanged signal
Parameters: - selected – newly selected feature ids NOTE - if you add features to the selection, the list contains all features, including those that were already selected before
- deselected – ids of all features which have previously been selected but are not any more
- _ – ignored (in case this is set to true, the old selection was dismissed and the new selection corresponds to selected
-
svir.dialogs.weight_data_dialog module¶
-
class
svir.dialogs.weight_data_dialog.
WeightDataDialog
(iface, project_definition)[source]¶ Bases:
PyQt4.QtGui.QDialog
,Ui_WeightDataDialog
Modal dialog allowing to select weights in a d3.js visualization
-
ACTIVE_LAYER_NUMERIC_FIELDS
¶
-
ACTIVE_LAYER_NUMERIC_FIELDS_ALIASES
¶
-
DEFAULT_OPERATOR
¶
-
DEV_MODE
¶
-
NODE_TYPES
¶
-
OPERATORS
¶
-
json_cleaned
¶
-
json_str
¶
-
json_updated
¶
-