Commit 61f3c9b3 authored by Martin Reinecke's avatar Martin Reinecke

remove compat.py

parent 6d6ad4dd
from builtins import (ascii, bytes, chr, dict, filter, hex, input,
map, next, oct, open, pow, range, round,
super, zip)
from functools import reduce
......@@ -20,7 +20,6 @@ import sys
import numpy as np
from mpi4py import MPI
from ..compat import *
from .random import Random
__all__ = ["ntask", "rank", "master", "local_shape", "data_object", "full",
......
......@@ -17,8 +17,6 @@
import numpy as np
from ..compat import *
class Random(object):
@staticmethod
......
......@@ -15,8 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .compat import *
try:
from mpi4py import MPI
if MPI.COMM_WORLD.Get_size() == 1:
......
......@@ -15,8 +15,8 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
from . import utilities
from .compat import *
from .domains.domain import Domain
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain
......
......@@ -15,7 +15,7 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from functools import reduce
from ..utilities import NiftyMetaBase
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..field import Field
from .structured_domain import StructuredDomain
......
......@@ -15,10 +15,10 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
import numpy as np
from .. import dobj
from ..compat import *
from ..field import Field
from ..sugar import exp
from .structured_domain import StructuredDomain
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from .structured_domain import StructuredDomain
......
......@@ -15,10 +15,10 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
import numpy as np
from .. import dobj
from ..compat import *
from ..field import Field
from .structured_domain import StructuredDomain
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .domain import Domain
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .domain import Domain
......
......@@ -17,7 +17,6 @@
import numpy as np
from .compat import *
from .field import Field
from .linearization import Linearization
from .sugar import from_random
......
......@@ -15,10 +15,10 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
import numpy as np
from . import dobj, utilities
from .compat import *
from .domain_tuple import DomainTuple
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..minimization.energy_adapter import EnergyAdapter
from ..multi_domain import MultiDomain
from ..multi_field import MultiField
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..domains.power_space import PowerSpace
from ..field import Field
from ..sugar import makeOp, sqrt
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..domain_tuple import DomainTuple
from ..multi_domain import MultiDomain
from ..operators.contraction_operator import ContractionOperator
......
......@@ -18,7 +18,6 @@
import numpy as np
from scipy.stats import invgamma, norm
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from ..linearization import Linearization
......
......@@ -21,7 +21,6 @@ from scipy.sparse.linalg import aslinearoperator
from scipy.special import erfc
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..domains.unstructured_domain import UnstructuredDomain
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..operators.inversion_enabler import InversionEnabler
from ..operators.sampling_enabler import SamplingEnabler
from ..operators.sandwich_operator import SandwichOperator
......
......@@ -17,7 +17,6 @@
import numpy as np
from .compat import *
from .field import Field
from .multi_field import MultiField
from .sugar import makeOp
......
......@@ -15,9 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .compat import *
def _logger_init():
import logging
from . import dobj
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..logger import logger
from .minimizer import Minimizer
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..logger import logger
from .line_search import LineSearch
from .minimizer import Minimizer
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..linearization import Linearization
from ..minimization.energy import Energy
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..logger import logger
from ..utilities import NiftyMetaBase
import numpy as np
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .energy import Energy
from ..linearization import Linearization
from .. import utilities
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..utilities import NiftyMetaBase
from ..logger import logger
import numpy as np
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .line_search import LineSearch
from .minimizer import Minimizer
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .energy import Energy
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from ..field import Field
from ..logger import logger
from ..multi_field import MultiField
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .compat import *
from .domain_tuple import DomainTuple
from .utilities import frozendict, indent
......
......@@ -18,7 +18,6 @@
import numpy as np
from . import utilities
from .compat import *
from .field import Field
from .multi_domain import MultiDomain
from .domain_tuple import DomainTuple
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..multi_domain import MultiDomain
from ..multi_field import MultiField
from .endomorphic_operator import EndomorphicOperator
......
......@@ -20,7 +20,6 @@ import itertools
import numpy as np
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..field import Field
......
......@@ -16,7 +16,6 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .. import utilities
from ..compat import *
from .diagonal_operator import DiagonalOperator
from .linear_operator import LinearOperator
from .scaling_operator import ScalingOperator
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .linear_operator import LinearOperator
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .endomorphic_operator import EndomorphicOperator
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.dof_space import DOFSpace
from ..domains.power_space import PowerSpace
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .linear_operator import LinearOperator
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .linear_operator import LinearOperator
......
......@@ -16,7 +16,6 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .. import utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from ..linearization import Linearization
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.power_space import PowerSpace
from ..domains.rg_space import RGSpace
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..field import Field
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj, utilities, fft
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.gl_space import GLSpace
from ..domains.lm_space import LMSpace
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..logger import logger
from ..minimization.conjugate_gradient import ConjugateGradient
from ..minimization.iteration_controllers import IterationController
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.power_space import PowerSpace
from ..field import Field
......
......@@ -19,7 +19,6 @@ import numpy as np
from scipy.sparse import coo_matrix
from scipy.sparse.linalg import aslinearoperator
from ..compat import *
from ..domains.rg_space import RGSpace
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .operator import Operator
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .operator import Operator
......
......@@ -16,7 +16,6 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
from ..compat import *
from ..utilities import NiftyMetaBase, indent
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .linear_operator import LinearOperator
......
......@@ -20,7 +20,6 @@ import itertools
import numpy as np
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..multi_field import MultiField, MultiDomain
......
......@@ -16,7 +16,6 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .. import dobj
from ..compat import *
from .. import fft
from ..domain_tuple import DomainTuple
from ..field import Field
......
......@@ -18,7 +18,6 @@
import numpy as np
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..field import Field
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..minimization.conjugate_gradient import ConjugateGradient
from ..minimization.quadratic_energy import QuadraticEnergy
from .endomorphic_operator import EndomorphicOperator
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from .diagonal_operator import DiagonalOperator
from .endomorphic_operator import EndomorphicOperator
from .linear_operator import LinearOperator
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..sugar import full
from .endomorphic_operator import EndomorphicOperator
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
......
......@@ -17,7 +17,6 @@
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.log_rg_space import LogRGSpace
from ..domains.unstructured_domain import UnstructuredDomain
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..compat import *
from .laplace_operator import LaplaceOperator
from .scaling_operator import ScalingOperator
......
......@@ -19,7 +19,6 @@ from collections import defaultdict
import numpy as np
from ..compat import *
from ..sugar import domain_union
from ..utilities import indent
from .block_diagonal_operator import BlockDiagonalOperator
......
......@@ -16,7 +16,6 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.log_rg_space import LogRGSpace
from ..field import Field
......
......@@ -20,7 +20,6 @@ import os
import numpy as np
from . import dobj
from .compat import *
from .domains.gl_space import GLSpace
from .domains.hp_space import HPSpace
from .domains.power_space import PowerSpace
......
......@@ -15,7 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .compat import *
from .field import Field
......
......@@ -20,7 +20,6 @@ import sys
import numpy as np
from . import dobj, utilities
from .compat import *
from .domain_tuple import DomainTuple
from .domains.power_space import PowerSpace
from .field import Field
......
......@@ -17,12 +17,11 @@
import collections
from itertools import product
from functools import reduce
import numpy as np
from future.utils import with_metaclass
from .compat import *
__all__ = ["get_slice_list", "safe_cast", "parse_spaces", "infer_space",
"memo", "NiftyMetaBase", "my_sum", "my_lincomb_simple",
"my_lincomb", "indent",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment