Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
7cee3e69
Commit
7cee3e69
authored
Dec 06, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACO: quick hack for a safe demo, skip scenarios with errors
parent
b4150f93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dream/simulation/GUI/ACO.py
dream/simulation/GUI/ACO.py
+8
-1
No files found.
dream/simulation/GUI/ACO.py
View file @
7cee3e69
...
...
@@ -122,9 +122,16 @@ class Simulation(DefaultSimulation):
scenario_list
.
append
(
ant
)
if
distributor
is
None
:
successful_scenario_list
=
[]
# synchronous
for
ant
in
scenario_list
:
try
:
ant
[
'result'
]
=
DefaultSimulation
.
runOneScenario
(
self
,
ant
[
'input'
])
successful_scenario_list
.
append
(
ant
)
except
Exception
,
e
:
print
"Error executing scenario, skipping ant. Scenaro was:
\
n
%s"
%
ant
[
'input'
]
scenario_list
=
successful_scenario_list
else
:
# asynchronous
job_id
=
distributor
.
requestSimulationRun
(
[
json
.
dumps
(
x
)
for
x
in
scenario_list
])
...
...
Write
Preview
Markdown
is supported
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