aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-11-13 13:18:00 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-13 13:18:00 +0100
commit9d15d1117c80ee9313d0dc391488efb9bb060a4a (patch)
tree4a4bc0e437eaa28014b8dfb5fe45c8675166e068
parentfb07e4517e2e0649d2106968ff1589f23950db16 (diff)
downloadrumba-9d15d1117c80ee9313d0dc391488efb9bb060a4a.tar.gz
rumba-9d15d1117c80ee9313d0dc391488efb9bb060a4a.zip
prototypes: ouroboros: Use zip function
This uses the zip function to run through the different lists in bootstrap_prototype, since it is a more elegant solution.
-rw-r--r--rumba/prototypes/ouroboros.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index cb0bf08..716f1b8 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -148,11 +148,12 @@ class Experiment(mod.Experiment):
logger.info("Creating IPCPs")
self.create_ipcps()
logger.info("Enrolling IPCPs...")
- i = 0
- for element in self.enrollments:
+
+ for element, mgmt, dt in zip(self.enrollments,
+ self.mgmt_flows,
+ self.dt_flows):
self.enroll_dif(element)
- self.setup_flows(self.mgmt_flows[i], comp="mgmt")
- self.setup_flows(self.dt_flows[i], comp="dt")
- i = i + 1
+ self.setup_flows(mgmt, comp="mgmt")
+ self.setup_flows(dt, comp="dt")
logger.info("All done, have fun!")