Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
1e1c1197
Commit
1e1c1197
authored
Aug 15, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhanced test/test_field.py
parent
4e4e0be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
test/test_field.py
test/test_field.py
+8
-4
No files found.
test/test_field.py
View file @
1e1c1197
...
@@ -29,7 +29,8 @@ from itertools import product
...
@@ -29,7 +29,8 @@ from itertools import product
from
nifty
import
Field
,
\
from
nifty
import
Field
,
\
RGSpace
,
\
RGSpace
,
\
LMSpace
,
\
LMSpace
,
\
PowerSpace
PowerSpace
,
\
nifty_configuration
from
d2o
import
distributed_data_object
from
d2o
import
distributed_data_object
...
@@ -93,11 +94,14 @@ class Test_Functionality(unittest.TestCase):
...
@@ -93,11 +94,14 @@ class Test_Functionality(unittest.TestCase):
@
expand
(
product
([
RGSpace
((
8
,),
harmonic
=
True
,
@
expand
(
product
([
RGSpace
((
8
,),
harmonic
=
True
,
zerocenter
=
False
),
zerocenter
=
False
),
RGSpace
((
8
,
8
),
harmonic
=
True
,
distances
=
0.123
,
RGSpace
((
8
,
8
),
harmonic
=
True
,
distances
=
0.123
,
zerocenter
=
Tru
e
)],
zerocenter
=
Fals
e
)],
[
RGSpace
((
8
,),
harmonic
=
True
,
[
RGSpace
((
8
,),
harmonic
=
True
,
zerocenter
=
False
),
zerocenter
=
False
),
LMSpace
(
12
)]))
LMSpace
(
12
)],
def
test_power_synthesize_analyze
(
self
,
space1
,
space2
):
[
'real'
,
'complex'
]))
def
test_power_synthesize_analyze
(
self
,
space1
,
space2
,
base
):
nifty_configuration
[
'harmonic_rg_base'
]
=
base
p1
=
PowerSpace
(
space1
)
p1
=
PowerSpace
(
space1
)
spec1
=
lambda
k
:
42
/
(
1
+
k
)
**
2
spec1
=
lambda
k
:
42
/
(
1
+
k
)
**
2
fp1
=
Field
(
p1
,
val
=
spec1
)
fp1
=
Field
(
p1
,
val
=
spec1
)
...
...
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