Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
dcc68bee
Commit
dcc68bee
authored
Aug 15, 2017
by
Gregory Ashton
Browse files
Fixes Issue #3
parent
5837254c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/mcmc_based_searches.py
View file @
dcc68bee
...
...
@@ -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.
)
...
...
Gregory Ashton
@GregAshton
mentioned in issue
#3 (closed)
·
Aug 15, 2017
mentioned in issue
#3 (closed)
mentioned in issue #3
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment