Commit c91e9fd4 authored by Pumpe, Daniel (dpumpe)'s avatar Pumpe, Daniel (dpumpe)
Browse files

Correct volume factors in ResponseOperator

parent baf3a7b8
Pipeline #11307 passed with stages
in 30 minutes and 41 seconds
...@@ -44,7 +44,6 @@ class ResponseOperator(LinearOperator): ...@@ -44,7 +44,6 @@ class ResponseOperator(LinearOperator):
def _times(self, x, spaces): def _times(self, x, spaces):
res = self._kernel.times(x) res = self._kernel.times(x)
res = self._exposure * res res = self._exposure * res
res = res.weight(power=1)
# removing geometric information # removing geometric information
return Field(self._target, val=res.val) return Field(self._target, val=res.val)
...@@ -52,5 +51,6 @@ class ResponseOperator(LinearOperator): ...@@ -52,5 +51,6 @@ class ResponseOperator(LinearOperator):
# setting correct spaces # setting correct spaces
res = x*self._exposure res = x*self._exposure
res = Field(self.domain, val=res.val) res = Field(self.domain, val=res.val)
res = res.weight(power=-1)
res = self._kernel.adjoint_times(res) res = self._kernel.adjoint_times(res)
return res return res
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment