def check_type(self):
        """Make sure each stochastic has a correct type, and identify discrete stochastics."""
        self.isdiscrete = {}
        for stochastic in self.stochastics:
            if stochastic.dtype in integer_dtypes:
                self.isdiscrete[stochastic] = True
            elif stochastic.dtype in bool_dtypes:
                raise ValueError(
                    'Binary stochastics not supported by AdaptativeMetropolis.')
            else:
                self.isdiscrete[stochastic] = False
def check_type ( self ) : self . isdiscrete = { } for stochastic in self . stochastics : if stochastic . dtype in integer_dtypes : self . isdiscrete [ stochastic ] = True elif stochastic . dtype in bool_dtypes : raise ValueError ( 'Binary stochastics not supported by AdaptativeMetropolis.' ) else : self . isdiscrete [ stochastic ] = False
Make sure each stochastic has a correct type, and identify discrete stochastics.