From 3e6ab5e8dddbcac7524f5cf4209f5bd01b5ce169 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, 7 Apr 2021 21:14:57 +0200
Subject: [PATCH] Fixed bug for ANN model initialization.

---
 Troubled_Cell_Detector.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Troubled_Cell_Detector.py b/Troubled_Cell_Detector.py
index 2d42b76..a3d1002 100644
--- a/Troubled_Cell_Detector.py
+++ b/Troubled_Cell_Detector.py
@@ -3,6 +3,7 @@
 @author: Laura C. Kühle, Soraya Terrab (sorayaterrab)
 
 TODO: Fix cell averages and reconstructions to create data with an x-point stencil
+TODO: Fix bug for ANN model initialization -> Done (later)
 
 """
 import os
@@ -207,7 +208,7 @@ class ArtificialNeuralNetwork(TroubledCellDetector):
 
         if not hasattr(ANN_Model, self._model):
             raise ValueError('Invalid model: "%s"' % self._model)
-        self._model = getattr(ANN_Model, self._model)(**self._model_config)
+        self._model = getattr(ANN_Model, self._model)(self._model_config)
 
     def get_cells(self, projection):
         num_ghost_cells = self._stencil_len//2
-- 
GitLab