Commit 3b338acb authored by Martin Reinecke's avatar Martin Reinecke
Browse files

small tweaks

parent b9f09974
......@@ -150,6 +150,8 @@ class DiagonalOperator(EndomorphicOperator):
return Field.from_local_data(x.domain, x.local_data/xdiag)
def _flip_modes(self, trafo):
if trafo == self.ADJOINT_BIT and not self._complex: # shortcut
return self
xdiag = self._ldiag
if self._complex and (trafo & self.ADJOINT_BIT):
xdiag = xdiag.conj()
......
......@@ -69,7 +69,6 @@ class FieldZeroPadder(LinearOperator):
i1 = idx + (slice(None, -(Nyquist+1), -1),)
xnew[i1] = x[i1]
# if (x.shape[d] & 1) == 0: # even number of pixels
# print (Nyquist, x.shape[d]-Nyquist)
# i1 = idx+(Nyquist,)
# xnew[i1] *= 0.5
# i1 = idx+(-Nyquist,)
......
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