diff --git a/DG_Approximation.py b/DG_Approximation.py index 3d64716eeb6996305482d80c640a274c59e7054b..5615d192f7e5645d05996c2cbbb664321c151102 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.