def get_distribution(self, kind):
        """
        Parse own distribution hypotheses,
        changing the keys back into numbers.
        """

        key = '{kind}_distribution'.format(kind=kind)
        if self in key:
            distribution = self[key]
            distribution = {float(k): v for k, v in distribution.items()}
        else:
            init = init_guess if kind == 'guess' else init_slip
            distribution = {
                h: 1 - (init - h) ** 2
                for h in [h / precision for h in range(1, precision)]
            }
        if kind == 'guess':
            return GuessPMF(distribution)
        if kind == 'slip':
            return SlipPMF(distribution)
dataset/ETHPy150Open heiskr/sagefy/server/models/card_parameters.py/CardParameters.get_distribution/swapped operands of `in`