Skip to content
GitLab
Menu
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
17f9dffc
Commit
17f9dffc
authored
Nov 03, 2016
by
Gregory Ashton
Browse files
Adds missing check for thet0indx
parent
a7671bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
17f9dffc
...
...
@@ -1386,7 +1386,8 @@ class MCMCSearch(BaseSearchClass):
filename
=
'{}/{}.par'
.
format
(
self
.
outdir
,
self
.
label
)
with
open
(
filename
,
'w+'
)
as
f
:
f
.
write
(
'MaxtwoF = {}
\n
'
.
format
(
max_twoF
))
f
.
write
(
'theta0_index = {}
\n
'
.
format
(
self
.
theta0_idx
))
if
hasattr
(
self
,
'theta0_index'
):
f
.
write
(
'theta0_index = {}
\n
'
.
format
(
self
.
theta0_idx
))
if
method
==
'med'
:
for
key
,
val
in
median_std_d
.
iteritems
():
f
.
write
(
'{} = {:1.16e}
\n
'
.
format
(
key
,
val
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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