File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1151,13 +1151,13 @@ def plot(
11511151 elif self ._result_file is not None :
11521152 plot_result_file = pathlib .Path (self ._result_file )
11531153 else :
1154- ModelicaSystemError ("No resultfile available - either run simulate() before plotting "
1155- "or provide a result file!" )
1154+ raise ModelicaSystemError ("No resultfile available - either run simulate() before plotting "
1155+ "or provide a result file!" )
11561156
11571157 if plot_result_file is None :
1158- ModelicaSystemError ("No resultfile defined!" )
1158+ raise ModelicaSystemError ("No resultfile defined!" )
11591159 elif not plot_result_file .is_file ():
1160- ModelicaSystemError (f"Provided resultfile { repr (plot_result_file .as_posix ())} does not exists!" )
1160+ raise ModelicaSystemError (f"Provided resultfile { repr (plot_result_file .as_posix ())} does not exists!" )
11611161 else :
11621162 expr = f'plot({ plotdata } , fileName="{ plot_result_file .as_posix ()} ")'
11631163 self .sendExpression (expr = expr )
You can’t perform that action at this time.
0 commit comments