Skip to content
Snippets Groups Projects
Commit dcc68bee authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fixes Issue #3

parent 5837254c
No related branches found
No related tags found
No related merge requests found
...@@ -282,6 +282,10 @@ class MCMCSearch(core.BaseSearchClass): ...@@ -282,6 +282,10 @@ class MCMCSearch(core.BaseSearchClass):
acors[temp, :] = emcee.autocorr.exponential_time(x) acors[temp, :] = emcee.autocorr.exponential_time(x)
c = np.max(acors, axis=0) c = np.max(acors, axis=0)
except emcee.autocorr.AutocorrError: 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 c = np.zeros(self.ndim) + np.nan
self.convergence_diagnosticx.append(i - self.convergence_n/2.) self.convergence_diagnosticx.append(i - self.convergence_n/2.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment