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
e28b9366
Commit
e28b9366
authored
Feb 22, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
names to be shown in the batches utilization chart
parent
54cbaf34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
dream/plugins/BatchesStationUtilization.py
dream/plugins/BatchesStationUtilization.py
+1
-1
dream/plugins/plugin.py
dream/plugins/plugin.py
+4
-0
No files found.
dream/plugins/BatchesStationUtilization.py
View file @
e28b9366
...
...
@@ -86,7 +86,7 @@ class BatchesStationUtilization(plugin.OutputPreparationPlugin):
if
objResults
[
'off_shift_ratio'
]:
off_shift_data
.
append
((
i
,
objResults
[
'off_shift_ratio'
][
0
]))
ticks
.
append
((
i
,
obj
.
get
(
'name'
,
obj
[
'id'
]
)))
ticks
.
append
((
i
,
obj
.
get
(
'name'
,
self
.
getNameFromId
(
data
,
obj
[
'id'
])
)))
i
+=
1
return
data
dream/plugins/plugin.py
View file @
e28b9366
...
...
@@ -32,6 +32,10 @@ class Plugin(object):
successors
.
append
(
edge
[
'destination'
])
return
successors
# returns name of a node given its id
def
getNameFromId
(
self
,
data
,
node_id
):
return
data
[
'graph'
][
'node'
][
node_id
][
'name'
]
class
ExecutionPlugin
(
Plugin
):
"""Plugin to handle the execution of multiple simulation runs.
"""
...
...
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