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
Open sidebar
ift
NIFTy
Commits
1e71071a
Commit
1e71071a
authored
Feb 21, 2018
by
Martin Reinecke
Browse files
don't do any weighting, just remove the geometry
parent
cf4f4e6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/geometry_remover.py
View file @
1e71071a
...
@@ -47,5 +47,5 @@ class GeometryRemover(LinearOperator):
...
@@ -47,5 +47,5 @@ class GeometryRemover(LinearOperator):
def
apply
(
self
,
x
,
mode
):
def
apply
(
self
,
x
,
mode
):
self
.
_check_input
(
x
,
mode
)
self
.
_check_input
(
x
,
mode
)
if
mode
==
self
.
TIMES
:
if
mode
==
self
.
TIMES
:
return
x
.
weight
(
1
).
cast_domain
(
self
.
_target
)
return
x
.
cast_domain
(
self
.
_target
)
return
x
.
cast_domain
(
self
.
_domain
)
.
weight
(
1
)
return
x
.
cast_domain
(
self
.
_domain
)
Write
Preview
Supports
Markdown
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