Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
194138c4
Commit
194138c4
authored
Jan 20, 2018
by
Martin Reinecke
Browse files
nifty2go -> nifty4 part 1/n
parent
a1e34940
Changes
102
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
194138c4
NIFTy - Numerical Information Field Theory
==========================================
[

](https://gitlab.mpcdf.mpg.de/ift/NIFTy/commits/nifty
2go
)
[

](https://gitlab.mpcdf.mpg.de/ift/NIFTy/commits/nifty
4
)
[

](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@nifty
2go
pip install --user --process-dependency-links --egg git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@nifty
4
### 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=nifty
2go
nosetests -x --with-coverage --cover-html --cover-package=nifty
4
### First Steps
...
...
demos/critical_filtering.py
View file @
194138c4
import
numpy
as
np
import
nifty
2go
as
ift
import
nifty
4
as
ift
np
.
random
.
seed
(
42
)
# np.seterr(all="raise",under="ignore")
...
...
demos/log_normal_wiener_filter.py
View file @
194138c4
import
nifty
2go
as
ift
import
nifty
4
as
ift
import
numpy
as
np
if
__name__
==
"__main__"
:
...
...
demos/nonlinear_critical_filter.py
View file @
194138c4
import
nifty
2go
as
ift
from
nifty
2go
.library.nonlinearities
import
Exponential
import
nifty
4
as
ift
from
nifty
4
.library.nonlinearities
import
Exponential
import
numpy
as
np
np
.
random
.
seed
(
42
)
...
...
demos/paper_demos/cartesian_wiener_filter.py
View file @
194138c4
import
numpy
as
np
import
nifty
2go
as
ift
import
nifty
4
as
ift
if
__name__
==
"__main__"
:
signal_to_noise
=
1.5
# The signal to noise ratio
...
...
demos/paper_demos/wiener_filter.py
View file @
194138c4
import
nifty
2go
as
ift
import
nifty
4
as
ift
import
numpy
as
np
...
...
demos/probing.py
View file @
194138c4
import
nifty
2go
as
ift
import
nifty
4
as
ift
import
numpy
as
np
np
.
random
.
seed
(
42
)
...
...
demos/wiener_filter_easy.py
View file @
194138c4
import
numpy
as
np
import
nifty
2go
as
ift
import
nifty
4
as
ift
if
__name__
==
"__main__"
:
...
...
demos/wiener_filter_via_curvature.py
View file @
194138c4
import
numpy
as
np
import
nifty
2go
as
ift
import
nifty
4
as
ift
import
numericalunits
as
nu
if
__name__
==
"__main__"
:
...
...
demos/wiener_filter_via_hamiltonian.py
View file @
194138c4
import
nifty
2go
as
ift
import
nifty
4
as
ift
import
numpy
as
np
np
.
random
.
seed
(
42
)
...
...
docs/source/conf.py
View file @
194138c4
...
...
@@ -12,7 +12,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
from
nifty
2go
import
*
from
nifty
4
import
*
import
sys
import
os
...
...
nifty/__init__.py
→
nifty
4
/__init__.py
View file @
194138c4
File moved
nifty/data_objects/__init__.py
→
nifty
4
/data_objects/__init__.py
View file @
194138c4
File moved
nifty/data_objects/distributed_do.py
→
nifty
4
/data_objects/distributed_do.py
View file @
194138c4
File moved
nifty/data_objects/numpy_do.py
→
nifty
4
/data_objects/numpy_do.py
View file @
194138c4
File moved
nifty/data_objects/random.py
→
nifty
4
/data_objects/random.py
View file @
194138c4
File moved
nifty/dobj.py
→
nifty
4
/dobj.py
View file @
194138c4
File moved
nifty/domain_object.py
→
nifty
4
/domain_object.py
View file @
194138c4
File moved
nifty/domain_tuple.py
→
nifty
4
/domain_tuple.py
View file @
194138c4
File moved
nifty/field.py
→
nifty
4
/field.py
View file @
194138c4
...
...
@@ -535,12 +535,12 @@ class Field(object):
return
self
.
_binary_helper
(
other
,
op
=
'__ipow__'
)
def
__repr__
(
self
):
return
"<nifty
2go
.Field>"
return
"<nifty
4
.Field>"
def
__str__
(
self
):
minmax
=
[
self
.
min
(),
self
.
max
()]
mean
=
self
.
mean
()
return
"nifty
2go
.Field instance
\n
- domain = "
+
\
return
"nifty
4
.Field instance
\n
- domain = "
+
\
repr
(
self
.
_domain
)
+
\
"
\n
- val = "
+
repr
(
self
.
val
)
+
\
"
\n
- min.,max. = "
+
str
(
minmax
)
+
\
...
...
Prev
1
2
3
4
5
6
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