We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f58f65 commit 904b292Copy full SHA for 904b292
1 file changed
OMPython/ModelicaSystem.py
@@ -1165,11 +1165,11 @@ def plot(
1165
1166
if plot_result_file is None:
1167
raise ModelicaSystemError("No resultfile defined!")
1168
- elif not plot_result_file.is_file():
+ if not plot_result_file.is_file():
1169
raise ModelicaSystemError(f"Provided resultfile {repr(plot_result_file.as_posix())} does not exists!")
1170
- else:
1171
- expr = f'plot({plotdata}, fileName="{plot_result_file.as_posix()}")'
1172
- self.sendExpression(expr=expr)
+
+ expr = f'plot({plotdata}, fileName="{plot_result_file.as_posix()}")'
+ self.sendExpression(expr=expr)
1173
1174
def getSolutions(
1175
self,
0 commit comments