From ca7e6b2ecb0bd37a3bcffe3b2efc2d41cdb0adaa Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 27 Jun 2019 21:31:17 +0200 Subject: [PATCH] Fix: Fix encaspulate Expression._tree when init with random --- mapytex/calculus/API/expression.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mapytex/calculus/API/expression.py b/mapytex/calculus/API/expression.py index 5f3fe63..f11f0d9 100644 --- a/mapytex/calculus/API/expression.py +++ b/mapytex/calculus/API/expression.py @@ -109,12 +109,11 @@ class Expression(object): ) computed = compute_leafs(leafs, generated) t = replace_rdleaf(rd_t, computed).map_on_leaf(moify) - t = cls._post_precessing(t) if shuffle: raise NotImplemented("Can't suffle expression yet") - return cls(t) + return cls._post_precessing(t) @classmethod def _post_precessing(cls, t):