Commit dbd58167 authored by Philipp Arras's avatar Philipp Arras
Browse files

Reorder imports and delete unused imports

parent 5b0e1b78
......@@ -17,9 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..domains.unstructured_domain import UnstructuredDomain
from ..domain_tuple import DomainTuple
from ..domains.unstructured_domain import UnstructuredDomain
from .linear_operator import LinearOperator
......
......@@ -17,13 +17,14 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .. import utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from .linear_operator import LinearOperator
from .fft_operator import FFTOperator
from .linear_operator import LinearOperator
from .sht_operator import SHTOperator
from .. import utilities
class HarmonicTransformOperator(LinearOperator):
......
......@@ -17,14 +17,16 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..compat import *
from ..logger import logger
from ..minimization.conjugate_gradient import ConjugateGradient
from ..minimization.iteration_controller import IterationController
from ..minimization.quadratic_energy import QuadraticEnergy
from .endomorphic_operator import EndomorphicOperator
from ..sugar import full
from .endomorphic_operator import EndomorphicOperator
class InversionEnabler(EndomorphicOperator):
......
......@@ -17,14 +17,16 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..field import Field
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.power_space import PowerSpace
from .endomorphic_operator import EndomorphicOperator
from ..field import Field
from ..utilities import infer_space
from ..domain_tuple import DomainTuple
from .. import dobj
from .endomorphic_operator import EndomorphicOperator
class LaplaceOperator(EndomorphicOperator):
......
......@@ -17,9 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import abc
import numpy as np
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
......
......@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..multi.multi_domain import MultiDomain
from .selection_operator import SelectionOperator
def MultiAdaptor(target):
......
......@@ -17,9 +17,11 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
import numpy as np
from ..compat import *
from .linear_operator import LinearOperator
import numpy as np
class OperatorAdapter(LinearOperator):
......
......@@ -17,11 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .dof_distributor import DOFDistributor
from ..domain_tuple import DomainTuple
from ..utilities import infer_space
from ..domains.power_space import PowerSpace
from ..utilities import infer_space
from .dof_distributor import DOFDistributor
class PowerDistributor(DOFDistributor):
......
......@@ -17,10 +17,11 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .. import dobj
from ..utilities import hartley
from .linear_operator import LinearOperator
......
......@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
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,11 +17,13 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from .linear_operator import LinearOperator
from ..compat import *
from .diagonal_operator import DiagonalOperator
from .endomorphic_operator import EndomorphicOperator
from .linear_operator import LinearOperator
from .scaling_operator import ScalingOperator
......
......@@ -17,13 +17,15 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from ..multi.multi_field import MultiField
from .endomorphic_operator import EndomorphicOperator
from ..domain_tuple import DomainTuple
from ..sugar import full
from .endomorphic_operator import EndomorphicOperator
class ScalingOperator(EndomorphicOperator):
......
......@@ -17,9 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .linear_operator import LinearOperator
from ..multi.multi_domain import MultiDomain
from .linear_operator import LinearOperator
class SelectionOperator(LinearOperator):
......
......@@ -17,15 +17,16 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from .. import dobj, utilities
from ..compat import *
from ..domain_tuple import DomainTuple
from .linear_operator import LinearOperator
from .. import dobj
from .. import utilities
from ..field import Field
from ..domains.gl_space import GLSpace
from ..domains.lm_space import LMSpace
from ..field import Field
from .linear_operator import LinearOperator
class SHTOperator(LinearOperator):
......
......@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .linear_operator import LinearOperator
......
......@@ -17,9 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .scaling_operator import ScalingOperator
from .laplace_operator import LaplaceOperator
from .scaling_operator import ScalingOperator
def SmoothnessOperator(domain, strength=1., logarithmic=True, space=None):
......
......@@ -17,10 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
import numpy as np
from ..compat import *
from ..utilities import my_sum
from .linear_operator import LinearOperator
import numpy as np
class SumOperator(LinearOperator):
......
......@@ -17,11 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from ..field import Field
from .endomorphic_operator import EndomorphicOperator
from .. import dobj
# MR FIXME: we should make sure that the domain is a harmonic RGSpace, correct?
......
......@@ -17,11 +17,14 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np
from ..import Field, RGSpace, HPSpace, GLSpace, PowerSpace, dobj
import os
import numpy as np
from ..compat import *
from ..importField import GLSpace, HPSpace, PowerSpace, RGSpace, dobj
# relevant properties:
# - x/y size
# - x/y/z log
......
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