From c644b003eda385e939a510733e0a3ecba7557cf1 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, 19 Jan 2022 15:03:10 +0100 Subject: [PATCH] Removed showing of plots. --- DG_Approximation.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/DG_Approximation.py b/DG_Approximation.py index 3d64716..5615d19 100644 --- a/DG_Approximation.py +++ b/DG_Approximation.py @@ -8,10 +8,19 @@ TODO: Replace loops with list comprehension if feasible TODO: Write documentation for all methods (important) TODO: Discuss adding kwargs to attributes in documentation TODO: Check whether documentation style is correct +TODO: Check whether all types in doc are correct TODO: Check whether 'projection' is always a np.array() TODO: Check whether all instance variables sensible TODO: Use cfl_number for updating, not just time TODO: Adjust code to allow classes for all equations (Burger, linear advection, 1D Euler) +TODO: Add documentation to ANN files +TODO: Limit line to 80 characters +TODO: Remove object inheritance from classes +TODO: Rename files according to standard +TODO: Add verbose output +TODO: Adapt TCD from Soraya (Dropbox->...->TEST_troubled-cell-detector->Troubled_Cell_Detector) +TODO: Improve file naming (e.g. use '.' instead of '__') +TODO: Remove showing of plots -> Done """ import os @@ -105,6 +114,7 @@ class DGScheme(object): Additional parameters for quadrature object. Default: {}. update_scheme : str, optional Name of update scheme for evaluation. Default: 'SSPRK3'. + """ # Unpack keyword arguments self._wave_speed = kwargs.pop('wave_speed', 1) @@ -196,9 +206,6 @@ class DGScheme(object): # Plot exact/approximate results, errors, shock tubes and any detector-dependant plots self._detector.plot_results(projection, troubled_cell_history, time_history) - if self._verbose: - plt.show() - def save_plots(self): """Saves plotted results. -- GitLab