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
c0d51e88
Commit
c0d51e88
authored
Feb 17, 2018
by
Martin Reinecke
Browse files
more tests
parent
f83738d3
Pipeline
#25079
passed with stages
in 30 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/__init__.py
View file @
c0d51e88
...
...
@@ -7,10 +7,12 @@ from .fft_operator import FFTOperator
from
.fft_smoothing_operator
import
FFTSmoothingOperator
from
.geometry_remover
import
GeometryRemover
from
.laplace_operator
import
LaplaceOperator
from
.smoothness_operator
import
SmoothnessOperator
from
.power_distributor
import
PowerDistributor
from
.inversion_enabler
import
InversionEnabler
__all__
=
[
"LinearOperator"
,
"EndomorphicOperator"
,
"ScalingOperator"
,
"DiagonalOperator"
,
"HarmonicTransformOperator"
,
"FFTOperator"
,
"FFTSmoothingOperator"
,
"GeometryRemover"
,
"LaplaceOperator"
,
"PowerDistributor"
,
"InversionEnabler"
]
"LaplaceOperator"
,
"SmoothnessOperator"
,
"PowerDistributor"
,
"InversionEnabler"
]
test/test_operators/test_adjoint.py
View file @
c0d51e88
...
...
@@ -70,3 +70,8 @@ class Consistency_Tests(unittest.TestCase):
def
testLaplace
(
self
,
sp
,
dtype
):
op
=
ift
.
LaplaceOperator
(
sp
)
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
@
expand
(
product
(
_pow_spaces
,
[
np
.
float64
,
np
.
complex128
]))
def
testSmoothness
(
self
,
sp
,
dtype
):
op
=
ift
.
SmoothnessOperator
(
sp
)
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
Write
Preview
Supports
Markdown
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