Commit 194138c4 authored by Martin Reinecke's avatar Martin Reinecke

nifty2go -> nifty4 part 1/n

parent a1e34940
NIFTy - Numerical Information Field Theory
==========================================
[![build status](https://gitlab.mpcdf.mpg.de/ift/NIFTy/badges/fun_with_operators/build.svg)](https://gitlab.mpcdf.mpg.de/ift/NIFTy/commits/nifty2go)
[![build status](https://gitlab.mpcdf.mpg.de/ift/NIFTy/badges/fun_with_operators/build.svg)](https://gitlab.mpcdf.mpg.de/ift/NIFTy/commits/nifty4)
[![coverage report](https://gitlab.mpcdf.mpg.de/ift/NIFTy/badges/fun_with_operators/coverage.svg)](https://gitlab.mpcdf.mpg.de/ift/NIFTy/commits/nifty2go)
**NIFTy** project homepage:
......@@ -83,7 +83,7 @@ The current version of Nifty3 can be obtained by cloning the repository:
It is possible to simply install NIFTy with all its dependencies via the command
pip install --user --process-dependency-links --egg git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@nifty2go
pip install --user --process-dependency-links --egg git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@nifty4
### Running the tests
......@@ -94,7 +94,7 @@ In oder to run the tests one needs two additional packages:
Afterwards the tests (including a coverage report) are run using the following
command in the repository root:
nosetests -x --with-coverage --cover-html --cover-package=nifty2go
nosetests -x --with-coverage --cover-html --cover-package=nifty4
### First Steps
......
import numpy as np
import nifty2go as ift
import nifty4 as ift
np.random.seed(42)
# np.seterr(all="raise",under="ignore")
......
import nifty2go as ift
import nifty4 as ift
import numpy as np
if __name__ == "__main__":
......
import nifty2go as ift
from nifty2go.library.nonlinearities import Exponential
import nifty4 as ift
from nifty4.library.nonlinearities import Exponential
import numpy as np
np.random.seed(42)
......
import numpy as np
import nifty2go as ift
import nifty4 as ift
if __name__ == "__main__":
signal_to_noise = 1.5 # The signal to noise ratio
......
import nifty2go as ift
import nifty4 as ift
import numpy as np
......
import nifty2go as ift
import nifty4 as ift
import numpy as np
np.random.seed(42)
......
import numpy as np
import nifty2go as ift
import nifty4 as ift
if __name__ == "__main__":
......
import numpy as np
import nifty2go as ift
import nifty4 as ift
import numericalunits as nu
if __name__ == "__main__":
......
import nifty2go as ift
import nifty4 as ift
import numpy as np
np.random.seed(42)
......
......@@ -12,7 +12,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
from nifty2go import *
from nifty4 import *
import sys
import os
......
......@@ -535,12 +535,12 @@ class Field(object):
return self._binary_helper(other, op='__ipow__')
def __repr__(self):
return "<nifty2go.Field>"
return "<nifty4.Field>"
def __str__(self):
minmax = [self.min(), self.max()]
mean = self.mean()
return "nifty2go.Field instance\n- domain = " + \
return "nifty4.Field instance\n- domain = " + \
repr(self._domain) + \
"\n- val = " + repr(self.val) + \
"\n - min.,max. = " + str(minmax) + \
......
......@@ -18,19 +18,16 @@
from setuptools import setup, find_packages
exec(open('nifty/version.py').read())
exec(open('nifty4/version.py').read())
setup(name="nifty2go",
setup(name="nifty4",
version=__version__,
author="Theo Steininger, Martin Reinecke",
author_email="theos@mpa-garching.mpg.de",
author_email="martin@mpa-garching.mpg.de",
description="Numerical Information Field Theory",
url="http://www.mpa-garching.mpg.de/ift/nifty/",
package_dir = {"nifty2go": "nifty"},
packages=["nifty2go"] + ["nifty2go."+p for p in find_packages("nifty")],
packages=find_packages(include=["nifty4", "nifty4.*"]),
zip_safe=False,
dependency_links=[
'git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git#egg=pyHealpix-0.0.1'],
license="GPLv3",
setup_requires=['future', 'numpy'],
install_requires=['future', 'numpy'],
......
......@@ -18,7 +18,7 @@
from builtins import str
from parameterized import parameterized
import nifty2go as ift
import nifty4 as ift
import numpy as np
np.seterr(all='raise', under='ignore')
......
......@@ -20,7 +20,7 @@ import unittest
import numpy as np
from numpy.testing import assert_equal, assert_allclose
from itertools import product
import nifty2go as ift
import nifty4 as ift
from test.common import expand
......
......@@ -19,7 +19,7 @@
import unittest
import numpy as np
from numpy.testing import assert_allclose
import nifty2go as ift
import nifty4 as ift
from itertools import product
from test.common import expand
......
......@@ -17,7 +17,7 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
import unittest
import nifty2go as ift
import nifty4 as ift
import numpy as np
from itertools import product
from test.common import expand
......
......@@ -18,7 +18,7 @@
import unittest
from numpy.testing import assert_allclose, assert_equal
import nifty2go as ift
import nifty4 as ift
from test.common import generate_spaces
from itertools import product
from test.common import expand
......
......@@ -19,7 +19,7 @@
from __future__ import division
import unittest
from numpy.testing import assert_equal, assert_allclose
import nifty2go as ift
import nifty4 as ift
from test.common import generate_spaces
from itertools import product
from test.common import expand
......
......@@ -20,7 +20,7 @@ from __future__ import division
import unittest
import numpy as np
from numpy.testing import assert_allclose
import nifty2go as ift
import nifty4 as ift
from itertools import product
from test.common import expand
......
......@@ -18,7 +18,7 @@
import unittest
import numpy as np
import nifty2go as ift
import nifty4 as ift
from numpy.testing import assert_allclose
from itertools import product
from test.common import expand
......
......@@ -18,7 +18,7 @@
import unittest
from numpy.testing import assert_allclose
import nifty2go as ift
import nifty4 as ift
from itertools import product
from test.common import expand
......
......@@ -19,7 +19,7 @@
import unittest
import numpy as np
from numpy.testing import assert_allclose
import nifty2go as ift
import nifty4 as ift
from itertools import product
from test.common import expand
......
......@@ -21,7 +21,7 @@ import numpy as np
import itertools
from numpy.testing import assert_, assert_equal, assert_raises,\
assert_almost_equal
from nifty2go import GLSpace
from nifty4 import GLSpace
from test.common import expand
# [nlat, nlon, expected]
......
......@@ -21,7 +21,7 @@ import unittest
import numpy as np
from numpy.testing import assert_, assert_equal, assert_raises,\
assert_almost_equal
from nifty2go import HPSpace
from nifty4 import HPSpace
from test.common import expand
# [nside, expected]
......
......@@ -21,7 +21,7 @@ from numpy.testing import assert_
from itertools import product
from types import LambdaType
from test.common import expand, generate_spaces, generate_harmonic_spaces
import nifty2go as ift
import nifty4 as ift
class SpaceInterfaceTests(unittest.TestCase):
......
......@@ -21,7 +21,7 @@ import unittest
import numpy as np
from numpy.testing import assert_, assert_equal, assert_raises,\
assert_allclose
import nifty2go as ift
import nifty4 as ift
from test.common import expand
# [lmax, expected]
......
This diff is collapsed.
This diff is collapsed.
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