diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-05-30 16:24:58 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-05 10:09:21 +0200 |
commit | 63cc59cc42b22788801d20c1a6d9ca68cea8dc37 (patch) | |
tree | 62b385ee2c30f3661ee415e2b22915c237e7a1eb /rumba | |
parent | 0baf4da9e699170fc64a9436f7fb2498c0599081 (diff) | |
download | rumba-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.py | 5 |
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): """ |