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
13
Merge Requests
13
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
e5f51246
Commit
e5f51246
authored
May 02, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed dtype for real_signal == False.
parent
3aebc588
Pipeline
#12121
passed with stage
in 4 minutes and 47 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
nifty/field.py
nifty/field.py
+6
-0
No files found.
nifty/field.py
View file @
e5f51246
...
...
@@ -245,8 +245,14 @@ class Field(Loggable, Versionable, object):
result_domain
=
list
(
self
.
domain
)
result_domain
[
space_index
]
=
power_domain
if
real_signal
:
result_dtype
=
np
.
complex
else
:
result_dtype
=
np
.
float
result_field
=
self
.
copy_empty
(
domain
=
result_domain
,
dtype
=
result_dtype
,
distribution_strategy
=
power_spectrum
.
distribution_strategy
)
result_field
.
set_val
(
new_val
=
power_spectrum
,
copy
=
False
)
...
...
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