def __init__(self, distribution):
        """
        Args:
            distribution (openturns.Distribution):
                1D distribution created in OpenTURNS.
        """
        Dist.__init__(self)
        if distribution.getDimension() != 1:
            raise Exception("Only 1D OpenTURNS distribution are supported for now")
        self.distribution = distribution
def __init__ ( self , distribution ) : Dist . __init__ ( self ) if distribution . getDimension ( ) != 1 : raise Exception ( "Only 1D OpenTURNS distribution are supported for now" ) self . distribution = distribution
Args:
            distribution (openturns.Distribution):
                1D distribution created in OpenTURNS.