Commit 5abc2f5a authored by Reimar H Leike's avatar Reimar H Leike
Browse files

now multidomain has size property

parent 641b1b37
......@@ -103,6 +103,13 @@ class MultiDomain(object):
def __ne__(self, x):
return not self.__eq__(x)
def size(self):
size = 0
for dom in self._domains:
size += dom.size
return size
def __str__(self):
res = "MultiDomain:\n"
for key, dom in zip(self._keys, self._domains):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment