There is a maintenance of MPCDF Gitlab on Thursday, April 22st 2020, 9:00 am CEST - Expect some service interruptions during this time

Commit dfbc582a authored by Martin Reinecke's avatar Martin Reinecke

Merge branch 'fix-sandwich-inverse-sampling' into 'NIFTy_4'

Fix Sandwich Operator Inverse sampling

See merge request ift/NIFTy!274
parents 5f133b64 66089ee5
Pipeline #36923 passed with stages
in 10 minutes and 38 seconds
...@@ -76,7 +76,7 @@ class SandwichOperator(EndomorphicOperator): ...@@ -76,7 +76,7 @@ class SandwichOperator(EndomorphicOperator):
def draw_sample(self, from_inverse=False, dtype=np.float64): def draw_sample(self, from_inverse=False, dtype=np.float64):
# Inverse samples from general sandwiches is not possible # Inverse samples from general sandwiches is not possible
if from_inverse: if from_inverse:
if self._bun.capabilities & self._bun.INVERSE_TIMES: if self._bun.capability & self._bun.INVERSE_TIMES:
try: try:
s = self._cheese.draw_sample(from_inverse, dtype) s = self._cheese.draw_sample(from_inverse, dtype)
return self._bun.inverse_times(s) return self._bun.inverse_times(s)
......
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