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
e71ea7bc
Commit
e71ea7bc
authored
Apr 10, 2019
by
Ahmad Reza Cheraghi
Browse files
Correction of the order of scenario and then solution for the directory name
parent
e5156897
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.py
View file @
e71ea7bc
...
...
@@ -74,7 +74,7 @@ def swarm_sim(argv):
nTime
=
datetime
.
now
().
strftime
(
'%Y-%m-%d_%H-%M-%S-%f'
)[:
-
1
]
dir_name
=
nTime
+
"_"
+
s
olut
io
n
_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
s
cenar
io_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
\
dir_name
=
nTime
+
"_"
+
s
cenar
io_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
s
olut
io
n
_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
\
str
(
seedvalue
)
if
multiple_sim
==
1
:
directory
=
"./outputs/mulitple/"
+
act_date
+
"_"
+
scenario_file
.
rsplit
(
'.'
,
1
)[
0
]
+
\
...
...
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