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
28b41439
Commit
28b41439
authored
Feb 18, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set all decompositions to ouput results
parent
1d5aa5cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dream/plugins/AddBatchStations.py
dream/plugins/AddBatchStations.py
+4
-4
No files found.
dream/plugins/AddBatchStations.py
View file @
28b41439
...
...
@@ -50,6 +50,7 @@ class AddBatchStations(plugin.InputPreparationPlugin):
for
node_id
,
node
in
nodes
.
iteritems
():
if
node
[
'_class'
]
==
'Dream.BatchReassembly'
:
data
[
'graph'
][
'node'
][
node_id
][
'_class'
]
=
'Dream.BatchReassemblyBlocking'
data
[
'graph'
][
'node'
][
node_id
][
'outputResults'
]
=
1
# loop in BatchDecompositions to change the classes to BatchDecompositionStartTime for the ones that
# are just after the source
...
...
@@ -124,10 +125,9 @@ class AddBatchStations(plugin.InputPreparationPlugin):
self
.
addEdge
(
data
,
node_id
,
batchReassemblyId
)
# add an edge from batchReassembly to destination
self
.
addEdge
(
data
,
batchReassemblyId
,
destination
)
dataString
=
json
.
dumps
(
data
[
'graph'
][
'edge'
],
indent
=
5
)
# print dataString
# for node_id, node in nodes.iteritems():
# print node_id, node['_class']
return
data
# returns true if it is needed to add decomposition/reassembly
...
...
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