Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bilby
Commits
e916f71c
Commit
e916f71c
authored
May 29, 2018
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds logging message about likelihood evaluation time
parent
c7893edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tupak/sampler.py
tupak/sampler.py
+4
-0
No files found.
tupak/sampler.py
View file @
e916f71c
...
...
@@ -6,6 +6,7 @@ import os
import
sys
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
time
from
.result
import
Result
,
read_in_result
from
.prior
import
Prior
,
fill_priors
...
...
@@ -151,7 +152,10 @@ class Sampler(object):
except
AttributeError
as
e
:
logging
.
warning
(
'Cannot sample from {}, {}'
.
format
(
key
,
e
))
try
:
t1
=
time
.
time
()
self
.
likelihood
.
log_likelihood
()
logging
.
info
(
"Single likelihood eval. took {} s"
.
format
(
time
.
time
()
-
t1
))
except
TypeError
as
e
:
raise
TypeError
(
"Likelihood evaluation failed with message:
\n
'{}'
\n
"
...
...
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