Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
f460aea6
Commit
f460aea6
authored
Jul 12, 2018
by
Philipp Arras
Browse files
Automatical casting to real in PowerDistributor
parent
34b9495c
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/power_distributor.py
View file @
f460aea6
...
...
@@ -66,5 +66,6 @@ class PowerDistributor(DOFDistributor):
if
x
.
imag
.
sum
()
==
0
:
x
=
x
.
real
else
:
raise
TypeError
print
(
'Warning: Assume real in PowerDistributor.'
)
x
=
x
.
real
return
DOFDistributor
.
apply
(
self
,
x
,
mode
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment