Save Scenario Dialog.
Contact : email@example.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Tools for saving an active scenario on the dock.
Get the relative path to input_path from reference_path.
Read last state of GUI from configuration file.
Save current scenario to a text file.
You can use the saved scenario with the batch runner.
|Parameters:||scenario_file_path (str) – A path to the scenario file.|
Store current state of GUI to configuration file
Validate the input before saving a scenario.
Those validations are: 1. self.exposure_layer must be not None 2. self.hazard_layer must be not None 3. self.function_id is not an empty string or None