Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
0304eb59
Commit
0304eb59
authored
Sep 18, 2018
by
Steffen Vogel
🎅🏼
Browse files
python: raise an exception on overrun
Former-commit-id:
4d91bde2
parent
658b8c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Python/dpsim/Simulation.py
View file @
0304eb59
...
...
@@ -80,7 +80,7 @@ class Simulation(_dpsim.Simulation):
LOGGER
.
info
(
'Finished simulation!'
)
def
overrun
(
self
,
*
args
):
LOGGER
.
warn
(
'Overrun in simulation!'
);
raise
RuntimeError
(
"Simulation overrun!"
)
async
def
__update_progressbar_task
(
self
):
while
self
.
time
<
self
.
final_time
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment