def getData(self):
        """
        Get the data as a list.
        """
        data = []
        # Get data
        for rnd in range(0, (self.num_rounds + 1) * self.msg_blocks):
            tmp_row = []
            for word in self.print_format:
                try:
                    # Add word to table
                    if word == 'w':
                        weight = self.characteristic_data[word+str(rnd)]
                        # Print hw(weight) or weight depending on the cipher
                        if self.cipher.name == "keccakdiff" or \
                           self.cipher.name == "ketje" or \
                           self.cipher.name == "ascon":
                            tmp_row.append("-" + str(int(weight, 16)))
                        else:
                            tmp_row.append("-" + str(bin(int(weight, 16)).count('1')))
                    else:
                        tmp_row.append(self.characteristic_data[word+str(rnd)])
                except __HOLE__:
                    tmp_row.append("none")
            if tmp_row:
                data.append(tmp_row)
        return data
dataset/ETHPy150Open kste/cryptosmt/cryptanalysis/diffchars.py/DifferentialCharacteristic.getData