postprocess
NexusePlugin
Bases: Plugin
Source code in src/plugins/postprocess/nexus_e_plugin.py
get_default_parameters
classmethod
get_default_parameters() -> dict
move_to_mysql
Here should be re-implemented the following logic taken from postProcess.m:
disp('---------------- MySQL -----------------')
try
cd(workingDir);
command = ['python'...
' moveToMysql.py'...
' --simu-name ' simuName...
' --scen-name "' scenShortName...
'" --version-wv ' wspace.v_wv];
disp(command)
system(ACTIVATE_ENVIRONMENT + command);
catch
disp("FAILED to upload results to the output database.")
end
Source code in src/plugins/postprocess/nexus_e_plugin.py
run
Source code in src/plugins/postprocess/nexus_e_plugin.py
write_metadata
Source code in src/plugins/postprocess/nexus_e_plugin.py
Parameters
dataclass
Parameters(
results_path: str = "",
plot_config_file_path: str = "",
centiv: bool = False,
cascades: bool = False,
move_to_mysql: bool = False,
scenario_description: str = "",
execution_date: str = "",
output_name: str = "",
output_host: str = "",
output_port: str = "3307",
output_user: str = "",
output_password: str = "",
single_electric_node: bool = False,
)