Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
58d4b593
Commit
58d4b593
authored
Jun 18, 2018
by
Philipp Arras
Browse files
Rename nifty4 > nifty5
parent
02f153a5
Pipeline
#31301
passed with stages
in 8 minutes and 24 seconds
Changes
130
Pipelines
2
Hide whitespace changes
Inline
Sidebyside
Showing
20 changed files
with
33 additions
and
33 deletions
+33
33
.gitlabci.yml
.gitlabci.yml
+1
1
README.md
README.md
+4
4
demos/Wiener_Filter.ipynb
demos/Wiener_Filter.ipynb
+1
1
demos/critical_filtering.py
demos/critical_filtering.py
+2
2
demos/nonlinear_critical_filter.py
demos/nonlinear_critical_filter.py
+2
2
demos/nonlinear_wiener_filter.py
demos/nonlinear_wiener_filter.py
+2
2
demos/paper_demos/cartesian_wiener_filter.py
demos/paper_demos/cartesian_wiener_filter.py
+1
1
demos/paper_demos/wiener_filter.py
demos/paper_demos/wiener_filter.py
+1
1
demos/poisson_demo.py
demos/poisson_demo.py
+1
1
demos/probing.py
demos/probing.py
+1
1
demos/sampling.py
demos/sampling.py
+2
2
demos/tomography.py
demos/tomography.py
+1
1
demos/wiener_filter_data_space_noiseless.py
demos/wiener_filter_data_space_noiseless.py
+1
1
demos/wiener_filter_easy.py
demos/wiener_filter_easy.py
+1
1
demos/wiener_filter_via_curvature.py
demos/wiener_filter_via_curvature.py
+1
1
demos/wiener_filter_via_hamiltonian.py
demos/wiener_filter_via_hamiltonian.py
+1
1
docs/generate.sh
docs/generate.sh
+1
1
docs/source/citations.rst
docs/source/citations.rst
+1
1
docs/source/code.rst
docs/source/code.rst
+7
7
docs/source/conf.py
docs/source/conf.py
+1
1
No files found.
.gitlabci.yml
View file @
58d4b593
...
@@ 34,7 +34,7 @@ test_python2_with_coverage:
...
@@ 34,7 +34,7 @@ test_python2_with_coverage:
script
:
script
:

python setup.py install user f

python setup.py install user f

mpiexec n 2 bindto none nosetests q 2> /dev/null

mpiexec n 2 bindto none nosetests q 2> /dev/null

nosetests q withcoverage coverpackage=nifty
4
covererase

nosetests q withcoverage coverpackage=nifty
5
covererase

>

>
coverage report omit "*plotting*,*distributed_do*"
coverage report omit "*plotting*,*distributed_do*"

>

>
...
...
README.md
View file @
58d4b593
...
@@ 49,8 +49,8 @@ Optional dependencies:
...
@@ 49,8 +49,8 @@ Optional dependencies:
### Sources
### Sources
The current version of Nifty
4
can be obtained by cloning the repository and
The current version of Nifty
5
can be obtained by cloning the repository and
switching to the NIFTy_
4
branch:
switching to the NIFTy_
5
branch:
git clone https://gitlab.mpcdf.mpg.de/ift/NIFTy.git
git clone https://gitlab.mpcdf.mpg.de/ift/NIFTy.git
...
@@ 59,7 +59,7 @@ switching to the NIFTy_4 branch:
...
@@ 59,7 +59,7 @@ switching to the NIFTy_4 branch:
In the following, we assume a Debianbased distribution. For other
In the following, we assume a Debianbased distribution. For other
distributions, the "apt" lines will need slight changes.
distributions, the "apt" lines will need slight changes.
NIFTy
4
and its mandatory dependencies can be installed via:
NIFTy
5
and its mandatory dependencies can be installed via:
sudo aptget install git libfftw3dev python pythonpip pythondev
sudo aptget install git libfftw3dev python pythonpip pythondev
pip install user git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@NIFTy_4
pip install user git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@NIFTy_4
...
@@ 99,7 +99,7 @@ In oder to run the tests one needs two additional packages:
...
@@ 99,7 +99,7 @@ In oder to run the tests one needs two additional packages:
Afterwards the tests (including a coverage report) can be run using the
Afterwards the tests (including a coverage report) can be run using the
following command in the repository root:
following command in the repository root:
nosetests x withcoverage coverhtml coverpackage=nifty
4
nosetests x withcoverage coverhtml coverpackage=nifty
5
### First Steps
### First Steps
...
...
demos/Wiener_Filter.ipynb
View file @
58d4b593
...
@@ 140,7 +140,7 @@
...
@@ 140,7 +140,7 @@
"source": [
"source": [
"import numpy as np\n",
"import numpy as np\n",
"np.random.seed(40)\n",
"np.random.seed(40)\n",
"import nifty
4
as ift\n",
"import nifty
5
as ift\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline"
"%matplotlib inline"
]
]
...
...
demos/critical_filtering.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
from
nifty
4
.library.nonlinearities
import
Linear
,
Tanh
,
Exponential
from
nifty
5
.library.nonlinearities
import
Linear
,
Tanh
,
Exponential
import
numpy
as
np
import
numpy
as
np
np
.
random
.
seed
(
42
)
np
.
random
.
seed
(
42
)
...
...
demos/nonlinear_critical_filter.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
from
nifty
4
.library.nonlinearities
import
Exponential
from
nifty
5
.library.nonlinearities
import
Exponential
import
numpy
as
np
import
numpy
as
np
np
.
random
.
seed
(
42
)
np
.
random
.
seed
(
42
)
...
...
demos/nonlinear_wiener_filter.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
from
nifty
4
.library.nonlinearities
import
Linear
,
Exponential
,
Tanh
from
nifty
5
.library.nonlinearities
import
Linear
,
Exponential
,
Tanh
import
numpy
as
np
import
numpy
as
np
np
.
random
.
seed
(
20
)
np
.
random
.
seed
(
20
)
...
...
demos/paper_demos/cartesian_wiener_filter.py
View file @
58d4b593
import
numpy
as
np
import
numpy
as
np
import
nifty
4
as
ift
import
nifty
5
as
ift
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
signal_to_noise
=
0.5
# The signal to noise ratio
signal_to_noise
=
0.5
# The signal to noise ratio
...
...
demos/paper_demos/wiener_filter.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numpy
as
np
import
numpy
as
np
...
...
demos/poisson_demo.py
View file @
58d4b593
...
@@ 4,7 +4,7 @@
...
@@ 4,7 +4,7 @@
# to get exact figure of paper comment out lines marked by "COMMENT OUT"
# to get exact figure of paper comment out lines marked by "COMMENT OUT"
import
numpy
as
np
import
numpy
as
np
import
nifty
4
as
ift
import
nifty
5
as
ift
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
...
demos/probing.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numpy
as
np
import
numpy
as
np
...
...
demos/sampling.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numpy
as
np
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
from
nifty
4
.sugar
import
create_power_operator
from
nifty
5
.sugar
import
create_power_operator
np
.
random
.
seed
(
42
)
np
.
random
.
seed
(
42
)
...
...
demos/tomography.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numpy
as
np
import
numpy
as
np
...
...
demos/wiener_filter_data_space_noiseless.py
View file @
58d4b593
import
numpy
as
np
import
numpy
as
np
import
nifty
4
as
ift
import
nifty
5
as
ift
# TODO: MAKE RESPONSE MPI COMPATIBLE OR USE LOS RESPONSE INSTEAD
# TODO: MAKE RESPONSE MPI COMPATIBLE OR USE LOS RESPONSE INSTEAD
...
...
demos/wiener_filter_easy.py
View file @
58d4b593
import
numpy
as
np
import
numpy
as
np
import
nifty
4
as
ift
import
nifty
5
as
ift
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
demos/wiener_filter_via_curvature.py
View file @
58d4b593
import
numpy
as
np
import
numpy
as
np
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numericalunits
as
nu
import
numericalunits
as
nu
...
...
demos/wiener_filter_via_hamiltonian.py
View file @
58d4b593
import
nifty
4
as
ift
import
nifty
5
as
ift
import
numpy
as
np
import
numpy
as
np
np
.
random
.
seed
(
42
)
np
.
random
.
seed
(
42
)
...
...
docs/generate.sh
View file @
58d4b593
rm
rf
docs/build docs/source/mod
rm
rf
docs/build docs/source/mod
sphinxapidoc
l
e
d
2
o
docs/source/mod nifty
4
sphinxapidoc
l
e
d
2
o
docs/source/mod nifty
5
sphinxbuild
b
html docs/source/ docs/build/
sphinxbuild
b
html docs/source/ docs/build/
docs/source/citations.rst
View file @
58d4b593
...
@@ 7,7 +7,7 @@ NIFTyrelated publications
...
@@ 7,7 +7,7 @@ NIFTyrelated publications
author = {{Martin Reinecke, Theo Steininger, Marco Selig}},
author = {{Martin Reinecke, Theo Steininger, Marco Selig}},
title = {NIFTy  Numerical Information Field TheorY},
title = {NIFTy  Numerical Information Field TheorY},
url = {https://gitlab.mpcdf.mpg.de/ift/NIFTy},
url = {https://gitlab.mpcdf.mpg.de/ift/NIFTy},
version = {nifty
4
},
version = {nifty
5
},
date = {20180405},
date = {20180405},
}
}
...
...
docs/source/code.rst
View file @
58d4b593
.. currentmodule:: nifty
4
.. currentmodule:: nifty
5
=============
=============
Code Overview
Code Overview
...
@@ 35,7 +35,7 @@ Domains
...
@@ 35,7 +35,7 @@ Domains
Abstract base class
Abstract base class


One of the fundamental building blocks of the NIFTy
4
framework is the *domain*.
One of the fundamental building blocks of the NIFTy
5
framework is the *domain*.
Its required capabilities are expressed by the abstract :class:`Domain` class.
Its required capabilities are expressed by the abstract :class:`Domain` class.
A domain must be able to answer the following queries:
A domain must be able to answer the following queries:
...
@@ 151,7 +151,7 @@ performance benefits.
...
@@ 151,7 +151,7 @@ performance benefits.
Linear Operators
Linear Operators
================
================
A linear operator (represented by NIFTy
4
's abstract :class:`LinearOperator`
A linear operator (represented by NIFTy
5
's abstract :class:`LinearOperator`
class) can be interpreted as an (implicitly defined) matrix.
class) can be interpreted as an (implicitly defined) matrix.
It can be applied to :class:`Field` instances, resulting in other :class:`Field`
It can be applied to :class:`Field` instances, resulting in other :class:`Field`
instances that potentially live on other domains.
instances that potentially live on other domains.
...
@@ 245,7 +245,7 @@ highdimensional functions, which are often nonlinear.
...
@@ 245,7 +245,7 @@ highdimensional functions, which are often nonlinear.
Energy functionals
Energy functionals


In NIFTy
4
such functions are represented by objects of type :class:`Energy`.
In NIFTy
5
such functions are represented by objects of type :class:`Energy`.
These hold the prescription how to calculate the function's
These hold the prescription how to calculate the function's
:attr:`~Energy.value`, :attr:`~Energy.gradient` and
:attr:`~Energy.value`, :attr:`~Energy.gradient` and
(optionally) :attr:`~Energy.curvature` at any given :attr:`~Energy.position`
(optionally) :attr:`~Energy.curvature` at any given :attr:`~Energy.position`
...
@@ 256,9 +256,9 @@ linear operator objects.
...
@@ 256,9 +256,9 @@ linear operator objects.
Energies are classes that typically have to be provided by the user when
Energies are classes that typically have to be provided by the user when
tackling new IFT problems.
tackling new IFT problems.
Some examples of concrete energy classes delivered with NIFTy
4
are
Some examples of concrete energy classes delivered with NIFTy
5
are
:class:`QuadraticEnergy` (with positionindependent curvature, mainly used with
:class:`QuadraticEnergy` (with positionindependent curvature, mainly used with
conjugate gradient minimization) and :class:`~nifty
4
.library.WienerFilterEnergy`.
conjugate gradient minimization) and :class:`~nifty
5
.library.WienerFilterEnergy`.
Iteration control
Iteration control
...
@@ 269,7 +269,7 @@ checking the quality of the current solution estimate and stopping once
...
@@ 269,7 +269,7 @@ checking the quality of the current solution estimate and stopping once
it is sufficiently accurate. In case of numerical problems, the iteration needs
it is sufficiently accurate. In case of numerical problems, the iteration needs
to be terminated as well, returning a suitable error description.
to be terminated as well, returning a suitable error description.
In NIFTy
4
, this functionality is encapsulated in the abstract
In NIFTy
5
, this functionality is encapsulated in the abstract
:class:`IterationController` class, which is provided with the initial energy
:class:`IterationController` class, which is provided with the initial energy
object before starting the minimization, and is updated with the improved
object before starting the minimization, and is updated with the improved
energy after every iteration. Based on this information, it can either continue
energy after every iteration. Based on this information, it can either continue
...
...
docs/source/conf.py
View file @
58d4b593
...
@@ 73,7 +73,7 @@ source_suffix = '.rst'
...
@@ 73,7 +73,7 @@ source_suffix = '.rst'
master_doc
=
'index'
master_doc
=
'index'
# General information about the project.
# General information about the project.
project
=
u
'NIFTy
4
'
project
=
u
'NIFTy
5
'
copyright
=
u
'20132018, MaxPlanckSociety'
copyright
=
u
'20132018, MaxPlanckSociety'
author
=
u
'Theo Steininger / Martin Reinecke'
author
=
u
'Theo Steininger / Martin Reinecke'
...
...
Prev
1
2
3
4
5
…
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment