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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
e803f175
Commit
e803f175
authored
May 19, 2020
by
Philipp Arras
Browse files
Cleanup
parent
289f995c
Pipeline
#75254
passed with stages
in 8 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_conjugation_operator.py
View file @
e803f175
...
...
@@ -11,7 +11,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2020 Max-Planck-Society
# Copyright(C)
2013-
2020 Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
...
...
@@ -26,12 +26,12 @@ from ..common import setup_function, teardown_function
def
test_conjugation_operator
():
sp
=
ift
.
RGSpace
(
8
)
dom
=
ift
.
makeDomain
(
sp
)
f
=
ift
.
from_random
(
dom
,
dtype
=
np
.
complex128
)
op
=
ift
.
ScalingOperator
(
sp
,
1
).
conjugate
()
f
=
ift
.
from_random
(
dom
,
dtype
=
np
.
complex128
)
op
=
ift
.
ScalingOperator
(
sp
,
1
).
conjugate
()
res1
=
f
.
conjugate
()
res2
=
op
(
f
)
assert_allclose
(
res1
.
val
,
res2
.
val
)
ift
.
extra
.
consistency_check
(
op
,
domain_dtype
=
np
.
float64
,
target_dtype
=
np
.
float64
)
target_dtype
=
np
.
float64
)
ift
.
extra
.
consistency_check
(
op
,
domain_dtype
=
np
.
complex128
,
target_dtype
=
np
.
complex128
,
only_r_linear
=
True
)
test/test_operators/test_integration.py
View file @
e803f175
...
...
@@ -11,7 +11,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2020 Max-Planck-Society
# Copyright(C)
2013-
2020 Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
...
...
@@ -47,4 +47,3 @@ def test_integration_operator():
target_dtype
=
np
.
float64
)
ift
.
extra
.
consistency_check
(
op
,
domain_dtype
=
np
.
complex128
,
target_dtype
=
np
.
complex128
)
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