Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
8adbdc1c
Commit
8adbdc1c
authored
Jun 25, 2016
by
theos
Browse files
Disabled implicit domain fixing in projection operator.
parent
f0ec3ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
operators/nifty_operators.py
View file @
8adbdc1c
...
...
@@ -2371,7 +2371,9 @@ class projection_operator(operator):
# check if field is in the same signal/harmonic space as the
# domain of the projection operator
if
self
.
domain
!=
x
.
domain
:
x
=
x
.
transform
(
new_domain
=
self
.
domain
)
# TODO: check if a exception should be raised, or if
# one should try to fix stuff.
# x = x.transform(new_domain=self.domain)
vecvec
=
vecvec_operator
(
val
=
x
)
return
self
.
pseudo_tr
(
x
=
vecvec
,
axis
=
axis
,
**
kwargs
)
...
...
@@ -2382,7 +2384,9 @@ class projection_operator(operator):
domain
=
self
.
domain
,
codomain
=
self
.
codomain
)
if
self
.
domain
!=
working_field
.
domain
:
working_field
=
working_field
.
transform
(
new_domain
=
self
.
domain
)
# TODO: check if a exception should be raised, or if
# one should try to fix stuff.
# working_field = working_field.transform(new_domain=self.domain)
# Case 3: x is something else
else
:
...
...
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