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
2307f679
Commit
2307f679
authored
Apr 04, 2019
by
Ahmad Reza Cheraghi
Browse files
Updated run.py for multiple running
parent
e5f30b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.py
View file @
2307f679
...
...
@@ -77,7 +77,8 @@ def swarm_sim(argv):
dir_name
=
nTime
+
"_"
+
solution_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
\
str
(
seedvalue
)
if
multiple_sim
==
1
:
directory
=
"./outputs/mulitple/"
+
act_date
+
"/"
+
str
(
seedvalue
)
directory
=
"./outputs/mulitple/"
+
act_date
+
"_"
+
scenario_file
.
rsplit
(
'.'
,
1
)[
0
]
+
\
"_"
+
solution_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"/"
+
str
(
seedvalue
)
else
:
directory
=
"./outputs/"
+
dir_name
if
not
os
.
path
.
exists
(
directory
):
...
...
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