def __del__(self): logging.debug('destruct BandSource') #bands that are attached to an image source can't be destructed if not hasattr(self, 'attached') or not self.attached: if self.ref: nitropy.nitf_DataSource_destruct(self.ref)
def __del__(self): logging.debug('destruct DataSource') if self.ref: nitropy.nitf_DataSource_destruct(self.ref)