From c7f002a9f0592c1658975679f7edc4feb6671828 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: Sat, 4 Jun 2022 22:22:36 +0200 Subject: [PATCH] Fixed bug during adjustment setting. --- ANN_Data_Generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ANN_Data_Generator.py b/ANN_Data_Generator.py index acf0d95..4168fe9 100644 --- a/ANN_Data_Generator.py +++ b/ANN_Data_Generator.py @@ -203,7 +203,7 @@ class TrainingDataGenerator: centers = [center[0] for center in centers] # Induce adjustment to capture troubled cells - adjustment = 0 if initial_condition.is_smooth \ + adjustment = 0 if initial_condition.is_smooth() \ else centers[self._stencil_length//2] initial_condition.induce_adjustment(-spacing[0]/3) -- GitLab