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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
d9c94eb0
Commit
d9c94eb0
authored
May 13, 2016
by
theos
Browse files
Fixed the rg_space copy and get_codomain method; the fft_module was not copied properly.
parent
9a4fbdb0
Pipeline
#2900
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rg/nifty_fft.py
View file @
d9c94eb0
...
...
@@ -93,6 +93,7 @@ class fft_fftw(fft):
if
'pyfftw'
not
in
gdi
:
raise
ImportError
(
"The module pyfftw is needed but not available."
)
self
.
name
=
'pyfftw'
# The plan_dict stores the plan_and_info objects which correspond
# to a certain set of (field_val, domain, codomain) sets.
self
.
plan_dict
=
{}
...
...
@@ -401,6 +402,7 @@ class fft_gfft(fft):
"""
def
__init__
(
self
,
fft_module_name
):
self
.
name
=
fft_module_name
self
.
fft_machine
=
gdi
.
get
(
fft_module_name
)
if
self
.
fft_machine
is
None
:
raise
ImportError
(
...
...
rg/nifty_rg.py
View file @
d9c94eb0
...
...
@@ -258,6 +258,7 @@ class rg_space(point_space):
distances
=
self
.
distances
,
harmonic
=
self
.
harmonic
,
datamodel
=
self
.
datamodel
,
fft_module
=
self
.
fft_machine
.
name
,
comm
=
self
.
comm
)
def
get_shape
(
self
):
...
...
@@ -482,6 +483,7 @@ class rg_space(point_space):
distances
=
1
/
(
np
.
array
(
self
.
paradict
[
'shape'
])
*
np
.
array
(
self
.
distances
))
datamodel
=
self
.
datamodel
fft_module
=
self
.
fft_machine
.
name
comm
=
self
.
comm
complexity
=
{
0
:
1
,
1
:
0
,
2
:
2
}[
self
.
paradict
[
'complexity'
]]
harmonic
=
bool
(
not
self
.
harmonic
)
...
...
@@ -492,6 +494,7 @@ class rg_space(point_space):
distances
=
distances
,
harmonic
=
harmonic
,
datamodel
=
datamodel
,
fft_module
=
fft_module
,
comm
=
comm
)
return
new_space
...
...
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