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
6a914318
Commit
6a914318
authored
Jan 23, 2019
by
Reimar H Leike
Browse files
now testing whether one can create fields of objects
parent
fdbf3fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_field.py
View file @
6a914318
...
...
@@ -340,3 +340,9 @@ def test_funcs(num, dom, func):
res
=
getattr
(
f
,
func
)()
res2
=
getattr
(
np
,
func
)(
num
)
assert_allclose
(
res
.
local_data
,
res2
)
def
test_field_of_objects
():
arr
=
np
.
array
([
'x'
,
'y'
,
'z'
])
sp
=
ift
.
RGSpace
(
3
)
f
=
ift
.
Field
.
from_global_data
(
sp
,
arr
)
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