gstlal-inspiral
0.4.2
Main Page
Related Pages
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Pages
python
emcee
__init__.py
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
from
__future__
import
(division, print_function, absolute_import,
5
unicode_literals)
6
from
.sampler
import
*
7
from
.mh
import
*
8
from
.ensemble
import
*
9
from
.ptsampler
import
*
10
from
.
import
utils
11
12
13
__version__ =
"1.2.0"
14
15
16
def
test():
17
from
inspect
import
getmembers, ismethod
18
from
.tests
import
Tests
19
20
print(
"Starting tests..."
)
21
failures = 0
22
tests = Tests()
23
for
o
in
getmembers(tests):
24
tests.setUp()
25
if
ismethod(o[1])
and
o[0].startswith(
"test"
):
26
print(
"{0} ..."
.format(o[0]))
27
try
:
28
o[1]()
29
except
Exception
as
e:
30
print(
"Failed with:\n {0.__class__.__name__}: {0}"
31
.format(e))
32
failures += 1
33
else
:
34
print(
" Passed."
)
35
36
print(
"{0} tests failed"
.format(failures))
Generated on Thu May 21 2015 09:20:20 for gstlal-inspiral by
1.8.1.2