From 5eac3fb90bb2d774d8a29dc8645723ce2a9079b3 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: Tue, 15 Mar 2022 10:56:40 +0100 Subject: [PATCH] Removed completed TODOs. --- DG_Approximation.py | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/DG_Approximation.py b/DG_Approximation.py index 44dc745..d21d194 100644 --- a/DG_Approximation.py +++ b/DG_Approximation.py @@ -3,25 +3,30 @@ @author: Laura C. Kühle Urgent: -TODO: Move plotting into separate function -> Done -TODO: Move plotting into separate rule -> Done -TODO: Extract object initialization from DGScheme +TODO: Extract do_initial_projection() from DGScheme +TODO: Extract calculate_cell_average() from TCD +TODO: Extract calculate_[...]_solution() from Plotting +TODO: Extract plotting from TCD completely + (maybe give indicator which plots are required instead?) +TODO: Contain all plotting in Plotting +TODO: Remove use of DGScheme from ANN_Data_Generator TODO: Adapt TCD from Soraya (Dropbox->...->TEST_troubled-cell-detector->Troubled_Cell_Detector) TODO: Add verbose output TODO: Improve file naming (e.g. use '.' instead of '__') -TODO: Force input_size for each ANN model to be stencil length TODO: Combine ANN workflows -TODO: Unify use of 'length' and 'len' in naming TODO: Add an environment file for Snakemake -TODO: Make all directories local variable -> Done Critical, but not urgent: +TODO: Force input_size for each ANN model to be stencil length +TODO: Move inverse mass matrix to basis +TODO: Use full path for ANN model state +TODO: Enforce abstract classes/methods (abc.ABC, abc.abstractmethod) +TODO: Extract object initialization from DGScheme TODO: Use cfl_number for updating, not just time -TODO: Adjust code to allow classes for all equations - (Burger, linear advection, 1D Euler) Currently not critical: +TODO: Unify use of 'length' and 'len' in naming TODO: Replace loops with list comprehension if feasible TODO: Check whether 'projection' is always a np.array() TODO: Check whether all instance variables are sensible @@ -29,9 +34,13 @@ TODO: Rename files according to standard TODO: Outsource scripts into separate directory TODO: Allow comparison between ANN training datasets TODO: Add a default model state +TODO: Look into validators for variable checks Not feasible yet or doc-related: -TODO: Double-check everything! (also with pylint, pytype, pydoc, pycodestyle) +TODO: Adjust code to allow classes for all equations + (Burger, linear advection, 1D Euler) +TODO: Double-check everything! (also with pylint, pytype, pydoc, + pycodestyle, pydocstyle) TODO: Check whether documentation style is correct TODO: Check whether all types in doc are correct TODO: Discuss adding kwargs to attributes in documentation -- GitLab