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

Reorder imports and delete unused imports

parent 5b0e1b78
......@@ -17,8 +17,8 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .compat import *
from .compat import *
try:
from mpi4py import MPI
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .compat import *
from .domains.domain import Domain
......
......@@ -17,11 +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 . import utilities
from . import dobj, utilities
from .compat import *
from .domain_tuple import DomainTuple
from . import dobj
class Field(object):
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .compat import *
......
......@@ -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 .minimizer import Minimizer
from ..logger import logger
from .minimizer import Minimizer
class ConjugateGradient(Minimizer):
......
......@@ -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 abc
from .minimizer import Minimizer
from .line_search_strong_wolfe import LineSearchStrongWolfe
from ..compat import *
from ..logger import logger
from .line_search_strong_wolfe import LineSearchStrongWolfe
from .minimizer import Minimizer
class DescentMinimizer(Minimizer):
......
......@@ -17,9 +17,8 @@
# 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 ..utilities import NiftyMetaBase, memo
......
......@@ -17,8 +17,9 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..utilities import memo, my_lincomb_simple, my_lincomb
from ..utilities import memo, my_lincomb, my_lincomb_simple
from .energy import Energy
......
......@@ -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 .iteration_controller import IterationController
from ..logger import logger
from .iteration_controller import IterationController
class GradientNormController(IterationController):
......
......@@ -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 abc
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..logger import logger
from .descent_minimizer import DescentMinimizer
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
......
......@@ -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 abc
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -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 .line_search import LineSearch
from .line_energy import LineEnergy
from ..compat import *
from ..logger import logger
from .line_energy import LineEnergy
from .line_search import LineSearch
class LineSearchStrongWolfe(LineSearch):
......
......@@ -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 abc
from ..compat import *
from ..utilities import NiftyMetaBase
......
......@@ -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 .minimizer import Minimizer
from .line_search_strong_wolfe import LineSearchStrongWolfe
from .minimizer import Minimizer
class NonlinearCG(Minimizer):
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .energy import Energy
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .descent_minimizer import DescentMinimizer
from .line_search_strong_wolfe import LineSearchStrongWolfe
......
......@@ -17,12 +17,13 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .. import dobj
from ..compat import *
from .minimizer import Minimizer
from ..field import Field
from .. import dobj
from ..logger import logger
from .iteration_controller import IterationController
from .minimizer import Minimizer
def _toNdarray(fld):
......
......@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from ..compat import *
from .descent_minimizer import DescentMinimizer
......
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