aboutsummaryrefslogtreecommitdiff
path: root/rumba
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-05-30 16:24:58 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-06-05 10:09:21 +0200
commit63cc59cc42b22788801d20c1a6d9ca68cea8dc37 (patch)
tree62b385ee2c30f3661ee415e2b22915c237e7a1eb /rumba
parent0baf4da9e699170fc64a9436f7fb2498c0599081 (diff)
downloadrumba-63cc59cc42b22788801d20c1a6d9ca68cea8dc37.tar.gz
rumba-63cc59cc42b22788801d20c1a6d9ca68cea8dc37.zip
tools: Add script to generate bandwidth graphs
This adds a script to generate bandwidth graphs from an exported bandwidth csv. It will color the nodes and links depending on the load and also adjust the thickness of the edges.
Diffstat (limited to 'rumba')
-rw-r--r--rumba/storyboard.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/rumba/storyboard.py b/rumba/storyboard.py
index beadf91..5ff7a98 100644
--- a/rumba/storyboard.py
+++ b/rumba/storyboard.py
@@ -1046,12 +1046,9 @@ class StoryBoard(_SBEntity):
if self.experiment is None:
raise ValueError("An experiment is needed to schedule commands.")
- if self._script is None:
- self._script = _Script(self)
-
action = functools.partial(self.experiment.export_dif_bandwidth,
filename, dif)
- self._script.add_event(Event(action, ev_time=t))
+ self.add_event(Event(action, ev_time=t))
def schedule_link_state(self, t, dif, state):
"""