__init__.py 2.42 KB
Newer Older
Marco Selig's avatar
Marco Selig committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## NIFTY (Numerical Information Field Theory) has been developed at the
## Max-Planck-Institute for Astrophysics.
##
## Copyright (C) 2013 Max-Planck-Society
##
## Author: Marco Selig
## Project homepage: <http://www.mpa-garching.mpg.de/ift/nifty/>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.

from __future__ import division
Ultimanet's avatar
Ultimanet committed
23
24
25
26

import matplotlib as mpl
mpl.use('Agg')

Ultimanet's avatar
Ultimanet committed
27
28
29
30
31
32
from nifty_about import about
from nifty_cmaps import ncmap
from nifty_core import space,\
                    point_space,\
                    nested_space,\
                    field 
ultimanet's avatar
ultimanet committed
33
from nifty_mpi_data import distributed_data_object
Ultimanet's avatar
Ultimanet committed
34
35
36
37
38
from nifty_power import *
from nifty_random import random
from nifty_simple_math import *
from nifty_tools import conjugate_gradient,\
                            steepest_descent
39
40
41
from nifty_paradict import space_paradict,\
                            point_space_paradict,\
                            nested_space_paradict
Ultimanet's avatar
Ultimanet committed
42
43
from smoothing import *
from operators import *
Marco Selig's avatar
Marco Selig committed
44
45
46

## optional submodule `rg`
try:
Ultimanet's avatar
Ultimanet committed
47
48
49
    from rg import rg_space,\
                    power_backward_conversion_rg,\
                    power_forward_conversion_rg
50
    from nifty_paradict import rg_space_paradict
Marco Selig's avatar
Marco Selig committed
51
52
53
except(ImportError):
    pass

Marco Selig's avatar
Marco Selig committed
54
55
## optional submodule `lm`
try:
Ultimanet's avatar
Ultimanet committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    from lm import lm_space,\
                    power_backward_conversion_lm,\
                    power_forward_conversion_lm
    from nifty_paradict import lm_space_paradict

    try:
        from lm import gl_space
        from nifty_paradict import gl_space_paradict
    except(ImportError):
        pass
    
    try:
        from lm import hp_space
        from nifty_paradict import hp_space_paradict
    except(ImportError):
        pass
    
Marco Selig's avatar
Marco Selig committed
73
74
75
except(ImportError):
    pass

Ultimanet's avatar
Ultimanet committed
76
77
78
79
from demos import get_demo_dir
from pickling import _pickle_method, _unpickle_method

#import pyximport; pyximport.install(pyimport = True)
Marco Selig's avatar
Marco Selig committed
80