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
4b934985
Commit
4b934985
authored
Jan 24, 2019
by
Reimar H Leike
Browse files
fix
parent
1161d07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_multi_field.py
View file @
4b934985
...
...
@@ -37,10 +37,9 @@ def test_func():
def
test_multifield_field_consistency
():
f1
=
ift
.
full
(
dom
,
27
)
f2
=
ift
.
from_global_data
(
dom
,
f1
.
to_global_data
())
f2
=
ift
.
from_global_data
(
dom
[
'd1'
],
f1
[
'd1'
]
.
to_global_data
())
assert_equal
(
f1
.
sum
(),
f2
.
sum
())
assert_equal
(
-
f1
,
(
-
f2
)[
'd1'
])
assert_equal
(
abs
(
f1
),
(
abs
(
f2
))[
'd1'
])
assert_equal
(
f1
.
size
,
f2
.
size
)
def
test_dataconv
():
...
...
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