Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
bilby
Commits
f626d8a5
Commit
f626d8a5
authored
May 10, 2018
by
Colm Talbot
Browse files
change print to logging
parent
046b871d
Pipeline
#18654
passed with stages
in 2 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tupak/prior.py
View file @
f626d8a5
...
...
@@ -474,7 +474,7 @@ def write_priors_to_file(priors, outdir):
if
outdir
[
-
1
]
!=
"/"
:
outdir
+=
"/"
prior_file
=
outdir
+
"prior.txt"
print
(
"Writing priors to {}"
.
format
(
prior_file
))
logging
.
info
(
"Writing priors to {}"
.
format
(
prior_file
))
with
open
(
prior_file
,
"w"
)
as
outfile
:
for
key
in
priors
:
outfile
.
write
(
"prior['{}'] = {}
\n
"
.
format
(
key
,
priors
[
key
]))
Write
Preview
Supports
Markdown
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