From 5aee48fb41baab3fe44254f158c54a0a6f10b7e0 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, 3 Apr 2021 20:48:43 +0200 Subject: [PATCH] Removed completed TODOs. --- ANN_Training_Data_Generator.py | 1 - Artificial_Neural_Network.py | 9 +++++++++ DG_Approximation.py | 4 +--- Troubled_Cell_Detector.py | 7 ------- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ANN_Training_Data_Generator.py b/ANN_Training_Data_Generator.py index 805b5a4..8f6114e 100644 --- a/ANN_Training_Data_Generator.py +++ b/ANN_Training_Data_Generator.py @@ -3,7 +3,6 @@ @author: Soraya Terrab (sorayaterrab), Laura C. Kühle TODO: Improve '_generate_cell_data' -TODO: Fix type for log prints -> Done """ diff --git a/Artificial_Neural_Network.py b/Artificial_Neural_Network.py index 24cee96..b093b55 100644 --- a/Artificial_Neural_Network.py +++ b/Artificial_Neural_Network.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +""" +@author: Laura C. Kühle, Soraya Terrab (sorayaterrab) + +TODO: Adapt '_train()' to fit style +TODO: Add ANN testing from Soraya +TODO: Add ANN classification from Soraya + +""" import numpy as np import torch from torch.utils.data import TensorDataset, DataLoader diff --git a/DG_Approximation.py b/DG_Approximation.py index 9d09116..56edebd 100644 --- a/DG_Approximation.py +++ b/DG_Approximation.py @@ -7,9 +7,7 @@ TODO: Double-check everything! TODO: Replace loops with list comprehension if feasible TODO: Write documentation for all methods TODO: Contemplate how to make shock tubes comparable -TODO: Fix bug in approximation -> Done (used num_grid_cells instead of cell_len for cfl_number in last step) -TODO: Include check_wavelet() for all cases in build_training_data() -> Done -TODO: Remove 'Custom' class in Quadrature -> Done +TODO: Check whether 'projection' is always a np.array() """ import numpy as np diff --git a/Troubled_Cell_Detector.py b/Troubled_Cell_Detector.py index dc060de..72042bf 100644 --- a/Troubled_Cell_Detector.py +++ b/Troubled_Cell_Detector.py @@ -2,13 +2,6 @@ """ @author: Laura C. Kühle, Soraya Terrab (sorayaterrab) -TODO: Adapt 'train()' to fit style -TODO: Add ANN testing from Soraya to ANN implementation -TODO: Add ANN classification from Soraya to ANN implementation -TODO: Move ANN implementation to new file -> Done (Artificial_Neural_Network) -TODO: Implement 'get_cells()' for 'ArtificialNeuralNetwork' -> Done -TODO: Adapt calculate_approximate_solution() to not require a quadrature -> Done -TODO: Add function to determine cell average and reconstructions -> Done TODO: Fix cell averages and reconstructions to create data with an x-point stencil """ -- GitLab