Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
d4b62092
Commit
d4b62092
authored
May 02, 2016
by
theos
Browse files
Merge branch 'minor-fixes-for-axis'
# Conflicts: # test/test_nifty_mpi_data.py
parents
c1cdc4fb
724a857f
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/test_nifty_mpi_data.py
View file @
d4b62092
...
...
@@ -1774,11 +1774,11 @@ class Test_axis(unittest.TestCase):
decimal
=
4
)
@
parameterized
.
expand
(
itertools
.
product
([
'max'
,
'sum'
,
'prod'
,
'mean'
,
'var'
,
'std'
,
'all'
,
'any'
,
itertools
.
product
([
'sum'
,
'prod'
,
'mean'
,
'var'
,
'std'
,
'all'
,
'any'
,
'min'
,
'amin'
,
'nanmin'
,
'argmin'
,
'max'
,
'amax'
,
'nanmax'
,
'argmax'
],
all_datatypes
[
1
:],
[(
1
,),
(
6
,
6
)],
all_datatypes
[
1
:],
[(
1
,
),
(
2
,
3
)],
all_distribution_strategies
,
[
None
,
0
,
(
1
,
),
(
0
,
1
)]),
testcase_func_name
=
custom_name_func
)
...
...
@@ -1796,7 +1796,7 @@ class Test_axis(unittest.TestCase):
getattr
(
np
,
function
)(
a
,
axis
=
axis
),
decimal
=
4
)
else
:
if
axis
i
s
None
or
axis
==
0
or
axis
==
(
0
,):
if
axis
i
n
[
None
,
0
,
(
0
,)
]
:
assert_almost_equal
(
getattr
(
obj
,
function
)(
axis
=
axis
),
getattr
(
np
,
function
)(
a
,
axis
=
axis
),
decimal
=
4
)
...
...
test/test_nifty_spaces.py
View file @
d4b62092
...
...
@@ -1356,7 +1356,7 @@ print generate_space('rg_space')
class
Test_axis
(
unittest
.
TestCase
):
@
parameterized
.
expand
(
itertools
.
product
(
point_like_spaces
,
[
8
,
16
],
itertools
.
product
(
point_like_spaces
,
[
8
,
4
],
[
'sum'
,
'prod'
,
'mean'
,
'var'
,
'std'
,
'median'
,
'all'
,
'any'
,
'amin'
,
'nanmin'
,
'argmin'
,
'amax'
,
'nanmax'
,
'argmax'
],
...
...
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