From 66089ee525826c364a4591903fc72eba211f1e8c Mon Sep 17 00:00:00 2001 From: Silvan Streit Date: Thu, 16 Aug 2018 15:11:33 +0200 Subject: [PATCH] Fix Sandwich Operator Inverse sampling --- nifty4/operators/sandwich_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifty4/operators/sandwich_operator.py b/nifty4/operators/sandwich_operator.py index 55d96d29..67985c93 100644 --- a/nifty4/operators/sandwich_operator.py +++ b/nifty4/operators/sandwich_operator.py @@ -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) -- GitLab