code: def _logprior(self):
          
          logj = self.logjacobian
          logp = self.prior_distribution(**self.current_params) + logj
          if numpy.isnan(logp):
              logp = -numpy.inf
          return logp
docs: Calculates the log prior at the current parameters.