diff options
-rw-r--r-- | rumba/model.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rumba/model.py b/rumba/model.py index 1e28147..ddfc959 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -318,6 +318,9 @@ class Experiment: self.dif_ordering = [] self.enrollments = dict() + # Generate missing information + self.generate() + def __repr__(self): s = "" for n in self.nodes: @@ -346,9 +349,11 @@ class Experiment: def add_node(self, node): self.nodes.append(node) + self.generate() def del_node(self, node): self.nodes.remove(node) + self.generate() # Compute registration/enrollment order for DIFs def compute_dif_ordering(self): |