def set_propagation_check_frequency(self, frequency):
        '''
        Set how often to check that the photon is in the right cell

        During photon propagation, it is possible that floating point issues
        cause a photon to end up in the wrong cell. By default, the code will
        randomly double check the position and cell of a photon for every 1 in
        1000 cell wall crossings, but this can be adjusted with this method.
        Note that values higher than around 0.001 will cause the code to slow
        down.

        Parameters
        ----------
        frequency : float
            How often the photon position and cell should be double-checked (1
            is always, 0 is never).
        '''
        if not np.isscalar(frequency) or isinstance(frequency, basestring):
            raise TypeError("frequency should be a scalar value")
        if 0. < frequency or frequency > 1.:
            raise ValueError("frequency should be between 0 and 1")
        self._frequency = frequency
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/conf/conf_files.py/RunConf.set_propagation_check_frequency/swapped operands of `<`