mcmc_inversion.py
def calculate_prior_uniform(self, mtrial):
        """
        Calculates whether the prposed model violates the uniform
        prior. Returns 1 when it does not, 0 when it does.
        """
        if np.any([mtrial > self.prior_high]) or np.any([mtrial < self.prior_low]):
            probability = 0.
        else:
            probability = 1.
        return probability

        Calculates whether the prposed model violates the uniform
        prior. Returns 1 when it does not, 0 when it does.
        
Calculates whether the prposed model violates the uniform
prior. Returns 1 when it does not, 0 when it does.
Calculates whether the prposed model violates the uniform prior . Returns 1 when it does not 0 when it does .
def calculate_prior_uniform(self, mtrial):
        if np.any([mtrial > self.prior_high]) or np.any([mtrial < self.prior_low]):
            probability = 0.
        else:
            probability = 1.
        return probability
def calculate_prior_uniform ( self , mtrial ) : if np . any ( [ mtrial > self . prior_high ] ) or np . any ( [ mtrial < self . prior_low ] ) : probability = 0. else : probability = 1. return probability
Calculates whether the prposed model violates the uniform
prior.
Calculates whether the prposed model violates the uniform prior .
"""
        Calculates whether the prposed model violates the uniform
        prior. Returns 1 when it does not, 0 when it does.
        """
self
mtrial