Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ahmad Reza Cheraghi
swarm-sim
Commits
e0539637
Commit
e0539637
authored
Mar 08, 2019
by
Ahmad Reza Cheraghi
Browse files
Bugfix in sim.py because the closing window button did not work.
parent
65b7d6fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/sim.py
View file @
e0539637
...
...
@@ -117,11 +117,11 @@ class Sim:
if
self
.
visualization
:
window
=
vis
.
VisWindow
(
self
.
window_size_x
,
self
.
window_size_y
,
self
)
window
.
run
()
while
self
.
get_actual_round
()
<=
self
.
get_max_round
()
and
self
.
__end
==
False
:
self
.
solution_mod
.
solution
(
self
)
self
.
csv_round_writer
.
next_line
(
self
.
get_actual_round
())
self
.
__round_counter
=
self
.
__round_counter
+
1
else
:
while
self
.
get_actual_round
()
<=
self
.
get_max_round
()
and
self
.
__end
==
False
:
self
.
solution_mod
.
solution
(
self
)
self
.
csv_round_writer
.
next_line
(
self
.
get_actual_round
())
self
.
__round_counter
=
self
.
__round_counter
+
1
#creating gnu plots
self
.
csv_round_writer
.
aggregate_metrics
()
...
...
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