Skip to content
GitLab
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
e0227f8b
Commit
e0227f8b
authored
Mar 13, 2019
by
Philipp Arras
Browse files
Add test and renaming
parent
4fae9924
Pipeline
#45190
failed with stages
in 5 minutes
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/__init__.py
View file @
e0227f8b
...
...
@@ -85,6 +85,7 @@ from .library.wiener_filter_curvature import WienerFilterCurvature
from
.library.correlated_fields
import
CorrelatedField
,
MfCorrelatedField
from
.library.adjust_variances
import
(
make_adjust_variances_hamiltonian
,
do_adjust_variances
)
from
.library.nfft
import
NFFT
from
.
import
extra
...
...
nifty5/library/nfft.py
View file @
e0227f8b
...
...
@@ -20,7 +20,7 @@ import numpy as np
import
nifty5
as
ift
class
NFFT
Operator
(
ift
.
LinearOperator
):
class
NFFT
(
ift
.
LinearOperator
):
"""Performs a non-equidistant Fourier transform, i.e. a Fourier transform
followed by a degridding operation.
...
...
test/test_operators/test_adjoint.py
View file @
e0227f8b
...
...
@@ -279,3 +279,10 @@ def testValueInserter(sp, seed):
ind
.
append
(
np
.
random
.
randint
(
0
,
ss
-
1
))
op
=
ift
.
ValueInserter
(
sp
,
ind
)
ift
.
extra
.
consistency_check
(
op
)
def
testNFFT
():
dom
=
ift
.
RGSpace
(
2
*
(
16
,))
uv
=
np
.
array
([[.
2
,
.
4
],
[
-
.
22
,
.
452
]])
op
=
ift
.
NFFT
(
dom
,
uv
)
ift
.
extra
.
consistency_check
(
op
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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