Commit 7ef67d29 by Gregory Ashton

Merge branch 'master' into develop-GA

parents 4b4621dc dcc68bee
Pipeline #2232 passed with stage
in 1 minute 23 seconds
......@@ -266,7 +266,7 @@ class MCMCSearch(core.BaseSearchClass):
if test_type in ['autocorr']:
self._get_convergence_test = self.test_autocorr_convergence
elif test_type in ['GR']:
self._get_convergence_test= self.test_GR_convergence
self._get_convergence_test = self.test_GR_convergence
else:
raise ValueError('test_type {} not understood'.format(test_type))
......@@ -282,6 +282,10 @@ class MCMCSearch(core.BaseSearchClass):
acors[temp, :] = emcee.autocorr.exponential_time(x)
c = np.max(acors, axis=0)
except emcee.autocorr.AutocorrError:
logging.info('Failed to calculate exponential autocorrelation')
c = np.zeros(self.ndim) + np.nan
except AttributeError:
logging.info('Unable to calculate exponential autocorrelation')
c = np.zeros(self.ndim) + np.nan
self.convergence_diagnosticx.append(i - self.convergence_n/2.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment