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
4e551526
Commit
4e551526
authored
Feb 07, 2017
by
Theo Steininger
Browse files
Removed field_type from test_field.py
parent
bc9adacb
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_field.py
View file @
4e551526
...
...
@@ -28,9 +28,7 @@ class Test_Interface(unittest.TestCase):
[[
'dtype'
,
np
.
dtype
],
[
'distribution_strategy'
,
str
],
[
'domain'
,
tuple
],
[
'field_type'
,
tuple
],
[
'domain_axes'
,
tuple
],
[
'field_type_axes'
,
tuple
],
[
'val'
,
distributed_data_object
],
[
'shape'
,
tuple
],
[
'dim'
,
np
.
int
],
...
...
@@ -39,8 +37,7 @@ class Test_Interface(unittest.TestCase):
def
test_return_types
(
self
,
domain
,
attribute_desired_type
):
attribute
=
attribute_desired_type
[
0
]
desired_type
=
attribute_desired_type
[
1
]
ft
=
FieldArray
(
shape
=
(
2
,),
dtype
=
np
.
complex
)
f
=
Field
(
domain
=
domain
,
field_type
=
ft
)
f
=
Field
(
domain
=
domain
)
assert_
(
isinstance
(
getattr
(
f
,
attribute
),
desired_type
))
#class Test_Initialization(unittest.TestCase):
...
...
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