Addresses issue while trying to dump matrix object:
AttributeError: Base instance has no attribute '__getitem__'
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
def tostr(self, depth):
ret = '\t'*depth + "Concat({item}):\n".format(item=self.item)
- return ret + ''.join([i[1].tostr(depth+1) for i in self.submats])
+ return ret + ''.join([i.tostr(depth+1) for i in self.submats])
class PickRandom(Matrix):
"""
def tostr(self, depth):
ret = '\t'*depth + "PickRandom({item}):\n".format(item=self.item)
- return ret + ''.join([i[1].tostr(depth+1) for i in self.submats])
+ return ret + ''.join([i.tostr(depth+1) for i in self.submats])
class Sum(Matrix):
"""