def calcCandScore(self, cell_type):

        tgt_key = ''

        for key in self.table.iterkeys():
            if key[0] == cell_type:
                # If the sentence scores were caculated earlier; return tgt_key as key
                if self.sent_scored:
                    tgt_key = key
                    break

                # Sort the entries based on the candidate score
                self.sort4CandScore(key)
                tgt_key = key
                break
        if tgt_key == '':
            raise RuntimeWarning, "Decoder did not produce derivations of the specified type in the present cell"
        return tgt_key
Callable which alwasy returns False
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/cell.py/Cell.calcCandScore--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/tests/test_registry.py/DummyReader.check_read