Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
be7c497d
There was a problem fetching the pipeline summary.
Commit
be7c497d
authored
7 years ago
by
Theo Steininger
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Field Tests.
parent
7c912416
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!186
Master
,
!184
Real fft really integrated
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_field.py
+7
-3
7 additions, 3 deletions
test/test_field.py
with
7 additions
and
3 deletions
test/test_field.py
+
7
−
3
View file @
be7c497d
...
@@ -22,6 +22,7 @@ import numpy as np
...
@@ -22,6 +22,7 @@ import numpy as np
from
numpy.testing
import
assert_
,
\
from
numpy.testing
import
assert_
,
\
assert_almost_equal
,
\
assert_almost_equal
,
\
assert_allclose
assert_allclose
from
nose.plugins.skip
import
SkipTest
from
itertools
import
product
from
itertools
import
product
...
@@ -63,9 +64,12 @@ class Test_Functionality(unittest.TestCase):
...
@@ -63,9 +64,12 @@ class Test_Functionality(unittest.TestCase):
def
test_hermitian_decomposition
(
self
,
z1
,
z2
,
preserve
,
complexdata
,
def
test_hermitian_decomposition
(
self
,
z1
,
z2
,
preserve
,
complexdata
,
s1
,
s2
):
s1
,
s2
):
np
.
random
.
seed
(
123
)
np
.
random
.
seed
(
123
)
r1
=
RGSpace
(
s1
,
harmonic
=
True
,
zerocenter
=
(
z1
,))
try
:
r2
=
RGSpace
(
s2
,
harmonic
=
True
,
zerocenter
=
(
z2
,))
r1
=
RGSpace
(
s1
,
harmonic
=
True
,
zerocenter
=
(
z1
,))
ra
=
RGSpace
(
s1
+
s2
,
harmonic
=
True
,
zerocenter
=
(
z1
,
z2
))
r2
=
RGSpace
(
s2
,
harmonic
=
True
,
zerocenter
=
(
z2
,))
ra
=
RGSpace
(
s1
+
s2
,
harmonic
=
True
,
zerocenter
=
(
z1
,
z2
))
except
ValueError
:
raise
SkipTest
if
preserve
:
if
preserve
:
complexdata
=
True
complexdata
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment