Skip to content

Commit 0f80208

Browse files
committed
modified docstrings and comments for better readability.
removed noqa comments where not needed.
1 parent 87b3002 commit 0f80208

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

main.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
"""
2-
This module provides a GUI application for running OpenModelica simulations.
2+
A destop GUI app for running OpenModelica simulations.
3+
Allows users to select an executable file,
4+
set time constraints, and run simulations.
5+
Displays real-time output from the simulation process.
6+
Efficient error handling is provided for unexpected errors.
7+
Simple and easy-to-use interface for running simulations.
38
"""
49

510
import os
@@ -95,7 +100,7 @@ def init_ui(self):
95100

96101
def _create_executable_input(self):
97102
"""
98-
Create the input layout for selecting an executable file.
103+
Input layout for selecting an executable file.
99104
Default placeholder text is set to guide the user.
100105
Also only .exe files are allowed to be selected.
101106
"""
@@ -252,13 +257,15 @@ def run_app(self):
252257
else "Unknown error occurred."
253258
) # noqa
254259
self.output_display.append(
255-
f"\nSimulation failed:\n{error_output}"
256-
) # noqa
260+
f"\nSimulation failed:\n{error_output}",
261+
)
257262

258-
except Exception as e: # noqa
263+
except Exception as e:
259264
QMessageBox.critical(
260-
self, "Execution Error", f"Unexpected error: {e}"
261-
) # noqa
265+
self,
266+
"Execution Error",
267+
f"Unexpected error: {e}",
268+
)
262269

263270

264271
# Main execution of the program

0 commit comments

Comments
 (0)