diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-09-26 15:46:11 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-09-26 15:46:11 +0000 |
commit | 9046c93103b1765ecb11edfb1795e9257f5970b0 (patch) | |
tree | c3e55c78ef3cb0c50966ee29ff332191f94a323a | |
parent | b1307085239af0a2865e311c655d9b787d8f6922 (diff) | |
parent | bc8f4bd7e45affd6e3d74562a0511a634d0d92cd (diff) | |
download | rumba-9046c93103b1765ecb11edfb1795e9257f5970b0.tar.gz rumba-9046c93103b1765ecb11edfb1795e9257f5970b0.zip |
Merge branch 'Fix-Disconnected-DIF' into 'master'
Model: add check for disconnected dif
Closes #20
See merge request arcfire/rumba!76
-rw-r--r-- | rumba/model.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rumba/model.py b/rumba/model.py index bb7d213..a223fb4 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -694,6 +694,8 @@ class Experiment: self.dt_flows[-1].append({'src': enrollee, 'dst': enroller}) frontier.add(edge[0]) + if len(dif.members) != len(enrolled): + raise Exception("Disconnected DIF found: %s" % (dif,)) # In case of a full mesh enrollment or dt flows for cur in dif_graphs[dif]: |