From 63cc59cc42b22788801d20c1a6d9ca68cea8dc37 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 30 May 2018 16:24:58 +0200 Subject: 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. --- rumba/storyboard.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'rumba') 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): """ -- cgit v1.2.3