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
e5156897
Commit
e5156897
authored
Apr 10, 2019
by
Ahmad Reza Cheraghi
Browse files
Added scenario_name to the directory-name
parent
74e8dfb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.py
View file @
e5156897
...
...
@@ -40,6 +40,7 @@ def swarm_sim(argv):
mm_particle
=
config
.
getint
(
"Matter"
,
"particle_mm_size"
)
mm_tile
=
config
.
getint
(
"Matter"
,
"tile_mm_size"
)
mm_location
=
config
.
getint
(
"Matter"
,
"location_mm_size"
)
# tile_color_map = config.getboolean("Matter", "tile_color_map")
multiple_sim
=
0
...
...
@@ -73,7 +74,7 @@ def swarm_sim(argv):
nTime
=
datetime
.
now
().
strftime
(
'%Y-%m-%d_%H-%M-%S-%f'
)[:
-
1
]
dir_name
=
nTime
+
"_"
+
solution_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
\
dir_name
=
nTime
+
"_"
+
solution_file
.
rsplit
(
'.'
,
1
)[
0
]
+
"_"
+
scenario_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