Skip to content
Snippets Groups Projects
Commit 66089ee5 authored by Silvan Streit's avatar Silvan Streit
Browse files

Fix Sandwich Operator Inverse sampling

parent 5f133b64
No related branches found
No related tags found
1 merge request!274Fix Sandwich Operator Inverse sampling
Pipeline #35038 passed
......@@ -76,7 +76,7 @@ class SandwichOperator(EndomorphicOperator):
def draw_sample(self, from_inverse=False, dtype=np.float64):
# Inverse samples from general sandwiches is not possible
if from_inverse:
if self._bun.capabilities & self._bun.INVERSE_TIMES:
if self._bun.capability & self._bun.INVERSE_TIMES:
try:
s = self._cheese.draw_sample(from_inverse, dtype)
return self._bun.inverse_times(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment