Skip to content
Snippets Groups Projects

Fix Sandwich Operator Inverse sampling

Merged Silvan Streit requested to merge fix-sandwich-inverse-sampling into NIFTy_4
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading