def readChild(self, element): child = None if element.tag == 'Array': child = Array() child.read(element) integers = bitDepthIsInteger(self.getAttribute('outBitDepth')) child.setValuesAreIntegers(integers) self._array = child return child
def readChild(self, element): child = None if element.tag == 'Array': child = Array() child.read(element) integers = bitDepthIsInteger(self.getAttribute('outBitDepth')) child.setValuesAreIntegers(integers) self._array = child elif element.tag == 'IndexMap': child = IndexMap() child.read(element) self._indexMaps.append(child) return child