diff options
| author | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-04 17:38:57 +0100 | 
|---|---|---|
| committer | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-04 17:38:57 +0100 | 
| commit | 8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e (patch) | |
| tree | 5b1e3b474caf2c89d27ec40f2022bcfd521f0886 | |
| parent | 3fbc6020ac3eecf228133d69bd7683b946cba9bf (diff) | |
| download | framework-8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e.tar.gz framework-8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e.tar.bz2 framework-8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e.tar.xz framework-8d11cade9c2dcf30d4a92ad9be4bc39b05c83b7e.zip | |
is compatible edit for NestedBlock and image Data
| -rwxr-xr-x | Wrappers/Python/ccpi/framework/BlockDataContainer.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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):
 | 
