Commit 6774b35a authored by Philipp Arras's avatar Philipp Arras

Cosmetics

parent 2c56a2d4
......@@ -18,9 +18,9 @@
from __future__ import absolute_import, division, print_function
from . import utilities
from .compat import *
from .domains.domain import Domain
from . import utilities
class DomainTuple(object):
......
......@@ -17,10 +17,12 @@
# 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 ..sugar import from_random
from ..compat import *
from ..linearization import Linearization
from ..sugar import from_random
__all__ = ["check_value_gradient_consistency",
"check_value_gradient_metric_consistency"]
......
......@@ -17,10 +17,12 @@
# 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 ..sugar import from_random
from ..compat import *
from ..field import Field
from ..sugar import from_random
__all__ = ["consistency_check"]
......
......@@ -25,8 +25,8 @@ from ..domains.power_space import PowerSpace
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
from ..multi_domain import MultiDomain
from ..sugar import makeOp, sqrt
from ..operators.operator import Operator
from ..sugar import makeOp, sqrt
def _ceps_kernel(dof_space, k, a, k0):
......
......@@ -21,11 +21,11 @@ from __future__ import absolute_import, division, print_function
from ..compat import *
from ..domain_tuple import DomainTuple
from ..multi_domain import MultiDomain
from ..operators.distributors import PowerDistributor
from ..operators.domain_distributor import DomainDistributor
from ..operators.harmonic_operators import HarmonicTransformOperator
from ..operators.distributors import PowerDistributor
from ..sugar import exp
from ..operators.simple_linear_operators import FieldAdapter
from ..sugar import exp
def CorrelatedField(s_space, amplitude_model):
......
......@@ -22,9 +22,9 @@ import numpy as np
from scipy.stats import invgamma, norm
from ..compat import *
from ..operators.operator import Operator
from ..linearization import Linearization
from ..field import Field
from ..linearization import Linearization
from ..operators.operator import Operator
from ..sugar import makeOp
......
......@@ -19,6 +19,7 @@
from __future__ import absolute_import, division, print_function
import numpy as np
from ..compat import *
from ..logger import logger
from .line_search_strong_wolfe import LineSearchStrongWolfe
......
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..minimization.energy import Energy
from ..linearization import Linearization
from ..multi_field import MultiField
from ..operators.scaling_operator import ScalingOperator
from ..minimization.energy import Energy
from ..operators.block_diagonal_operator import BlockDiagonalOperator
import numpy as np
from ..operators.scaling_operator import ScalingOperator
class EnergyAdapter(Energy):
......
......@@ -19,15 +19,15 @@
from __future__ import absolute_import, division, print_function
import numpy as np
from .. import dobj
from ..compat import *
from ..field import Field
from ..multi_field import MultiField
from ..domain_tuple import DomainTuple
from ..logger import logger
from ..multi_field import MultiField
from ..utilities import iscomplextype
from .iteration_controllers import IterationController
from .minimizer import Minimizer
from ..utilities import iscomplextype
def _multiToArray(fld):
......
......@@ -20,10 +20,10 @@ from __future__ import absolute_import, division, print_function
import numpy as np
from . import utilities
from .compat import *
from .field import Field
from .multi_domain import MultiDomain
from . import utilities
class MultiField(object):
......
......@@ -22,13 +22,13 @@ import os
import numpy as np
from .. import dobj
from ..compat import *
from ..field import Field
from ..domains.gl_space import GLSpace
from ..domains.hp_space import HPSpace
from ..domains.power_space import PowerSpace
from ..domains.rg_space import RGSpace
from .. import dobj
from ..field import Field
# relevant properties:
# - x/y size
......
......@@ -28,13 +28,12 @@ from .domain_tuple import DomainTuple
from .domains.power_space import PowerSpace
from .field import Field
from .logger import logger
from .operators.block_diagonal_operator import BlockDiagonalOperator
from .multi_domain import MultiDomain
from .multi_field import MultiField
from .operators.block_diagonal_operator import BlockDiagonalOperator
from .operators.diagonal_operator import DiagonalOperator
from .operators.distributors import PowerDistributor
__all__ = ['PS_field', 'power_analyze', 'create_power_operator',
'create_harmonic_smoothing_operator', 'from_random',
'full', 'from_global_data', 'from_local_data',
......
......@@ -22,9 +22,9 @@ import collections
from itertools import product
import numpy as np
from future.utils import with_metaclass
import pyfftw
from pyfftw.interfaces.numpy_fft import rfftn, fftn
from future.utils import with_metaclass
from pyfftw.interfaces.numpy_fft import fftn, rfftn
from .compat import *
......
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