From 8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Thu, 4 Apr 2019 17:38:57 +0100 Subject: is compatible edit for NestedBlock and image Data --- Wrappers/Python/ccpi/framework/BlockDataContainer.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/framework/BlockDataContainer.py b/Wrappers/Python/ccpi/framework/BlockDataContainer.py index 8e55b67..da6ee5b 100755 --- a/Wrappers/Python/ccpi/framework/BlockDataContainer.py +++ b/Wrappers/Python/ccpi/framework/BlockDataContainer.py @@ -52,6 +52,12 @@ class BlockDataContainer(object): def is_compatible(self, other): '''basic check if the size of the 2 objects fit''' + + for i in range(len(self.containers)): + if type(self.containers[i])==type(self): + self = self.containers[i] + + if isinstance(other, Number): return True elif isinstance(other, list): -- cgit v1.2.3