From 65d1c41e9fdf5442cfba406d4a6a72985fd57808 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=BChle=2C=20Laura=20Christine=20=28lakue103=29?=
 <laura.kuehle@uni-duesseldorf.de>
Date: Wed, 24 Nov 2021 16:57:56 +0100
Subject: [PATCH] Improved comments.

---
 ANN_Data_Generator.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ANN_Data_Generator.py b/ANN_Data_Generator.py
index 5706196..e858ad3 100644
--- a/ANN_Data_Generator.py
+++ b/ANN_Data_Generator.py
@@ -10,6 +10,7 @@ TODO: Change order of methods -> Done
 TODO: Fix bug in initialization of input matrix -> Done
 TODO: Improve function selection (more even distribution) -> Done
 TODO: Add documentation -> Done
+TODO: Improve comments -> Done
 
 """
 
@@ -240,18 +241,18 @@ class TrainingDataGenerator(object):
         # Calculating Corresponding Legendre Basis Coefficients for given polynomial_degree
         # Create stencil and basis_coefficients for smooth_function mapped onto stencil
 
-        # Determining grid_spacing
+        # Select random cell length
         grid_spacing = 2 / (2 ** np.random.randint(3, high=9, size=1))
 
-        # Pick a Random point between the left and right bound
+        # Pick random point between left and right bound
         point = np.random.random(1) * (self._right_bound-self._left_bound) + self._left_bound
 
-        # Ensure Bounds of x-point stencil are within the left and right bound
+        # Adjust grid spacing if necessary for stencil creation
         while point - self._stencil_length/2 * grid_spacing < self._left_bound\
                 or point + self._stencil_length/2 * grid_spacing > self._right_bound:
             grid_spacing = grid_spacing / 2
 
-        # x-point stencil
+        # Build x-point stencil
         interval = np.array([point - self._stencil_length/2 * grid_spacing,
                              point + self._stencil_length/2 * grid_spacing])
         stencil = np.array([point + factor * grid_spacing
-- 
GitLab