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

Sort imports

parent dcb13e7d
Pipeline #75491 passed with stages
in 9 minutes and 14 seconds
......@@ -16,11 +16,12 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
from . import utilities
from .domains.domain import Domain
import numpy as np
from . import utilities
from .domains.domain import Domain
class DomainTuple(object):
"""Ordered sequence of Domain objects.
......
......@@ -16,6 +16,7 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
from ..utilities import NiftyMeta
......
......@@ -16,6 +16,7 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
import numpy as np
from ..field import Field
......
......@@ -16,6 +16,7 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
from .domain import Domain
......
......@@ -16,6 +16,7 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from functools import reduce
import numpy as np
from . import utilities
......
......@@ -21,6 +21,7 @@ from operator import mul
import numpy as np
from .. import utilities
from ..domain_tuple import DomainTuple
from ..domains.power_space import PowerSpace
from ..domains.unstructured_domain import UnstructuredDomain
......@@ -38,7 +39,6 @@ from ..operators.operator import Operator
from ..operators.simple_linear_operators import ducktape
from ..probing import StatCalculator
from ..sugar import full, makeDomain, makeField, makeOp
from .. import utilities
def _reshaper(x, N):
......
......@@ -21,7 +21,7 @@ from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..domains.unstructured_domain import UnstructuredDomain
from ..operators.linear_operator import LinearOperator
from ..sugar import makeField, makeDomain
from ..sugar import makeDomain, makeField
class GridderMaker(object):
......
......@@ -16,15 +16,15 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
from scipy.stats import invgamma, norm
from scipy.interpolate import CubicSpline
from scipy.stats import invgamma, norm
from .. import random
from ..domain_tuple import DomainTuple
from ..domains.unstructured_domain import UnstructuredDomain
from ..field import Field
from ..operators.operator import Operator
from ..sugar import makeOp
from .. import random
def _f_on_np(f, arr):
......
......@@ -17,8 +17,8 @@
import numpy as np
from .sugar import makeOp
from .operators.operator import Operator
from .sugar import makeOp
class Linearization(Operator):
......
......@@ -15,10 +15,11 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..utilities import NiftyMeta
from ..logger import logger
import numpy as np
from ..logger import logger
from ..utilities import NiftyMeta
class LineEnergy(object):
"""Evaluates an underlying Energy along a certain line direction.
......
......@@ -18,9 +18,9 @@
import numpy as np
from . import utilities
from .domain_tuple import DomainTuple
from .field import Field
from .multi_domain import MultiDomain
from .domain_tuple import DomainTuple
from .operators.operator import Operator
......
......@@ -23,7 +23,7 @@ from .multi_domain import MultiDomain
from .multi_field import MultiField
from .operators.linear_operator import LinearOperator
from .operators.sandwich_operator import SandwichOperator
from .sugar import makeField, makeDomain
from .sugar import makeDomain, makeField
class _DomRemover(LinearOperator):
......
......@@ -15,9 +15,15 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .operators.operator import _OpChain, _OpSum, _OpProd
from .sugar import domain_union
from copy import deepcopy
from numpy import allclose
from .multi_field import MultiField
from .operators.operator import _OpChain, _OpProd, _OpSum
from .operators.simple_linear_operators import FieldAdapter
from .sugar import domain_union, from_random
def _optimise_operator(op):
"""
......@@ -260,10 +266,6 @@ def _optimise_operator(op):
return op
from copy import deepcopy
from .sugar import from_random
from .multi_field import MultiField
from numpy import allclose
def optimise_operator(op):
......
......@@ -20,6 +20,7 @@ from ..multi_field import MultiField
from .endomorphic_operator import EndomorphicOperator
from .linear_operator import LinearOperator
class BlockDiagonalOperator(EndomorphicOperator):
"""
Parameters
......
......@@ -15,11 +15,12 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
from .. import utilities
from ..domain_tuple import DomainTuple
from ..field import Field
from .endomorphic_operator import EndomorphicOperator
from .. import utilities
import numpy as np
class MatrixProductOperator(EndomorphicOperator):
......
......@@ -17,8 +17,8 @@
import numpy as np
from ..utilities import NiftyMeta, indent
from .. import pointwise
from ..utilities import NiftyMeta, indent
class Operator(metaclass=NiftyMeta):
......
......@@ -16,9 +16,10 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from .endomorphic_operator import EndomorphicOperator
from ..multi_domain import MultiDomain
from ..multi_field import MultiField
from .endomorphic_operator import EndomorphicOperator
class PartialConjugate(EndomorphicOperator):
"""Perform partial conjugation of a :class:`MultiField`
......
......@@ -17,6 +17,7 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
from ..domain_tuple import DomainTuple
from ..domains.rg_space import RGSpace
from ..domains.unstructured_domain import UnstructuredDomain
......
......@@ -18,7 +18,7 @@
from .multi_field import MultiField
from .operators.endomorphic_operator import EndomorphicOperator
from .operators.operator import Operator
from .sugar import makeField, from_random
from .sugar import from_random, makeField
class StatCalculator(object):
......
......@@ -16,8 +16,8 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import collections
from itertools import product
from functools import reduce
from itertools import product
import numpy as np
......
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