Commit 5b7ce748 authored by Philipp Arras's avatar Philipp Arras

More import cosmetics

parent b213d894
...@@ -17,11 +17,14 @@ ...@@ -17,11 +17,14 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import sys
import numpy as np import numpy as np
from .random import Random
from mpi4py import MPI from mpi4py import MPI
import sys
from ..compat import *
from .random import Random
_comm = MPI.COMM_WORLD _comm = MPI.COMM_WORLD
ntask = _comm.Get_size() ntask = _comm.Get_size()
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
# Data object module for NIFTy that uses simple numpy ndarrays. # Data object module for NIFTy that uses simple numpy ndarrays.
import numpy as np import numpy as np
from numpy import empty, empty_like, exp, full, log
from numpy import ndarray as data_object from numpy import ndarray as data_object
from numpy import full, empty, empty_like, sqrt, ones, zeros, vdot, \ from numpy import ones, sqrt, tanh, vdot, zeros
exp, log, tanh
from .random import Random from .random import Random
ntask = 1 ntask = 1
......
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from ..compat import *
class Random(object): class Random(object):
@staticmethod @staticmethod
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain from .structured_domain import StructuredDomain
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import abc import abc
from ..compat import *
from ..utilities import NiftyMetaBase from ..utilities import NiftyMetaBase
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain from .structured_domain import StructuredDomain
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from ..compat import *
from .structured_domain import StructuredDomain from .structured_domain import StructuredDomain
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from .structured_domain import StructuredDomain
from ..compat import *
from ..field import Field from ..field import Field
from .structured_domain import StructuredDomain
class LMSpace(StructuredDomain): class LMSpace(StructuredDomain):
......
...@@ -17,11 +17,13 @@ ...@@ -17,11 +17,13 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
from ..sugar import exp
import numpy as np import numpy as np
from .. import dobj from .. import dobj
from ..compat import *
from ..field import Field from ..field import Field
from ..sugar import exp
from .structured_domain import StructuredDomain from .structured_domain import StructuredDomain
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from .structured_domain import StructuredDomain
from .. import dobj from .. import dobj
from ..compat import *
from .structured_domain import StructuredDomain
class PowerSpace(StructuredDomain): class PowerSpace(StructuredDomain):
......
...@@ -17,11 +17,13 @@ ...@@ -17,11 +17,13 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import numpy as np import numpy as np
from .structured_domain import StructuredDomain
from ..field import Field
from .. import dobj from .. import dobj
from ..compat import *
from ..field import Field
from .structured_domain import StructuredDomain
class RGSpace(StructuredDomain): class RGSpace(StructuredDomain):
......
...@@ -17,11 +17,14 @@ ...@@ -17,11 +17,14 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import *
import abc import abc
from .domain import Domain
import numpy as np import numpy as np
from ..compat import *
from .domain import Domain
class StructuredDomain(Domain): class StructuredDomain(Domain):
"""The abstract base class for all structured NIFTy domains. """The abstract base class for all structured NIFTy domains.
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import * from ..compat import *
from .domain import Domain from .domain import Domain
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import * from ..compat import *
from ..library.gaussian_energy import GaussianEnergy from ..library.gaussian_energy import GaussianEnergy
from ..minimization.energy import Energy from ..minimization.energy import Energy
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes. # and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
from ..compat import * from ..compat import *
from ..minimization.energy import Energy from ..minimization.energy import Energy
from ..utilities import memo, my_sum from ..utilities import memo, my_sum
......
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