From ae54e48c4ea0b5558978e5eb60532b2bd1ddbd48 Mon Sep 17 00:00:00 2001
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
Date: Mon, 21 Oct 2019 11:14:08 +0200
Subject: [PATCH] correctly print RNG nodes

---
 pystencils/rng.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pystencils/rng.py b/pystencils/rng.py
index 5bc91b567..17eda9845 100644
--- a/pystencils/rng.py
+++ b/pystencils/rng.py
@@ -70,7 +70,8 @@ class RNGBase(CustomCodeNode):
                              self._time_step, self._offsets, self.keys, self._dim, self.result_symbols)
 
     def __repr__(self):
-        return (", ".join(['{}'] * self._num_vars) + " <- {}RNG").format(*self.result_symbols, self._name.capitalize())
+        return (", ".join(['{}'] * self._num_vars) + " \\leftarrow {}RNG").format(*self.result_symbols,
+                                                                                  self._name.capitalize())
 
 
 class PhiloxTwoDoubles(RNGBase):
-- 
GitLab