File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1160,13 +1160,13 @@ def plot(
11601160 elif self ._result_file is not None :
11611161 plot_result_file = pathlib .Path (self ._result_file )
11621162 else :
1163- ModelicaSystemError ("No resultfile available - either run simulate() before plotting "
1164- "or provide a result file!" )
1163+ raise ModelicaSystemError ("No resultfile available - either run simulate() before plotting "
1164+ "or provide a result file!" )
11651165
11661166 if plot_result_file is None :
1167- ModelicaSystemError ("No resultfile defined!" )
1167+ raise ModelicaSystemError ("No resultfile defined!" )
11681168 elif not plot_result_file .is_file ():
1169- ModelicaSystemError (f"Provided resultfile { repr (plot_result_file .as_posix ())} does not exists!" )
1169+ raise ModelicaSystemError (f"Provided resultfile { repr (plot_result_file .as_posix ())} does not exists!" )
11701170 else :
11711171 expr = f'plot({ plotdata } , fileName="{ plot_result_file .as_posix ()} ")'
11721172 self .sendExpression (expr = expr )
You can’t perform that action at this time.
0 commit comments