From 4df3e544237f68fb259dcfe1aa6d30d1617742b3 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Wed, 24 Jul 2024 17:22:24 +0200
Subject: [PATCH] Remove unneccesary doctest code; add more descriptive TODO
 comments

---
 src/pystencils/alignedarray.py                      | 2 +-
 src/pystencils/display_utils.py                     | 2 +-
 src/pystencils/sympyextensions/integer_functions.py | 8 --------
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/pystencils/alignedarray.py b/src/pystencils/alignedarray.py
index 32cc4dc83..4e315af78 100644
--- a/src/pystencils/alignedarray.py
+++ b/src/pystencils/alignedarray.py
@@ -22,7 +22,7 @@ def aligned_empty(shape, byte_alignment=True, dtype=np.float64, byte_offset=0, o
         #                                                        get_vector_instruction_set)
 
         # instruction_sets = get_supported_instruction_sets()
-        #   TODO fix this
+        #   TODO `get_supported_instruction_sets` has to be reimplemented
         instruction_sets = None
         if instruction_sets is None:
             byte_alignment = 64
diff --git a/src/pystencils/display_utils.py b/src/pystencils/display_utils.py
index 0543c9259..7f110c9c0 100644
--- a/src/pystencils/display_utils.py
+++ b/src/pystencils/display_utils.py
@@ -24,7 +24,7 @@ def to_dot(expr: sp.Expr, graph_style: Optional[Dict[str, Any]] = None, short=Tr
         from sympy.printing.dot import dotprint
         return graphviz.Source(dotprint(expr, graph_attr=graph_style))
     else:
-        #  TODO nbackend
+        #  TODO Implement dot / graphviz exporter for new backend AST
         raise NotImplementedError("Printing of AST nodes for the new backend is not implemented yet")
 
 
diff --git a/src/pystencils/sympyextensions/integer_functions.py b/src/pystencils/sympyextensions/integer_functions.py
index a683c528c..eb3bb4ccc 100644
--- a/src/pystencils/sympyextensions/integer_functions.py
+++ b/src/pystencils/sympyextensions/integer_functions.py
@@ -78,8 +78,6 @@ class modulo_floor(sp.Function):
         8
         >>> modulo_floor(12, 4)
         12
-        >>> from pystencils import TypedSymbol
-        >>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
     """
     nargs = 2
     is_integer = True
@@ -109,8 +107,6 @@ class modulo_ceil(sp.Function):
         12
         >>> modulo_ceil(12, 4)
         12
-        >>> from pystencils import TypedSymbol
-        >>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
     """
     nargs = 2
     is_integer = True
@@ -138,8 +134,6 @@ class div_ceil(sp.Function):
         3
         >>> div_ceil(8, 4)
         2
-        >>> from pystencils import TypedSymbol
-        >>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
     """
     nargs = 2
     is_integer = True
@@ -167,8 +161,6 @@ class div_floor(sp.Function):
         2
         >>> div_floor(8, 4)
         2
-        >>> from pystencils import TypedSymbol
-        >>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
     """
     nargs = 2
     is_integer = True
-- 
GitLab