1 __version__ = '1.2'
2
3
4 development = False
5
6
7
8
9
10 try:
11 from scipy.linalg import logm, expm, eigh
12 scipy_found = True
13 except ImportError:
14 msg = 'Scipy not found -- needed for functions logm, expm, eigh. '
15 msg += 'I will go on without it, but later an error will be thrown '
16 msg += 'if those functions are used.'
17 import warnings
18 warnings.warn(msg)
19
21 def f(*args, **kwargs):
22 raise Exception('Scipy not installed --- function %r not found.'
23 % s)
24 return f
25
26 logm = make_warning('logm')
27 expm = make_warning('expm')
28 eigh = make_warning('eigh')
29 scipy_found = False
30 development = False
31
32
33 import numpy as np
34 from contracts import new_contract, contract
35
36 from logging import getLogger
37 logger = getLogger(__name__)
38
39
40 from .constants import *
41
42 from .formatting import *
43 from .basic_utils import *
44 from .spheres import *
45 from .spheres_embedding import *
46 from .rotations import *
47 from .rotations_embedding import *
48 from .poses import *
49 from .poses_embedding import *
50 from .procrustes import *
51 from .manifolds import *
52 from .mds_algos import *
53