From 24f6eaf3af0fb79383593402aeb32ac71218345b Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Wed, 15 Feb 2023 13:56:06 +0100 Subject: [PATCH] include all plots now as default --- mlair/configuration/defaults.py | 3 ++- mlair/run_modules/post_processing.py | 4 ---- test/test_configuration/test_defaults.py | 4 +++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mlair/configuration/defaults.py b/mlair/configuration/defaults.py index d0b35929..3083e582 100644 --- a/mlair/configuration/defaults.py +++ b/mlair/configuration/defaults.py @@ -61,7 +61,8 @@ DEFAULT_FEATURE_IMPORTANCE_BOOTSTRAP_METHOD = "shuffle" DEFAULT_PLOT_LIST = ["PlotMonthlySummary", "PlotStationMap", "PlotClimatologicalSkillScore", "PlotTimeSeries", "PlotCompetitiveSkillScore", "PlotFeatureImportanceSkillScore", "PlotConditionalQuantiles", "PlotAvailability", "PlotAvailabilityHistogram", "PlotDataHistogram", "PlotPeriodogram", - "PlotSampleUncertaintyFromBootstrap"] + "PlotSampleUncertaintyFromBootstrap", "PlotErrorMetrics", "PlotDataMonthlyDistribution", + "PlotTimeEvolutionMetric", "PlotSeasonalMSEStack", "PlotErrorsOnMap"] DEFAULT_SAMPLING = "daily" DEFAULT_DATA_ORIGIN = {"cloudcover": "REA", "humidity": "REA", "pblheight": "REA", "press": "REA", "relhum": "REA", "temp": "REA", "totprecip": "REA", "u": "REA", "v": "REA", "no": "", "no2": "", "o3": "", diff --git a/mlair/run_modules/post_processing.py b/mlair/run_modules/post_processing.py index 4e7225af..1d32c570 100644 --- a/mlair/run_modules/post_processing.py +++ b/mlair/run_modules/post_processing.py @@ -756,10 +756,6 @@ class PostProcessing(RunEnvironment): logging.error(f"Could not create plot PlotErrorsOnMap due to the following error: {e}" f"\n{sys.exc_info()[0]}\n{sys.exc_info()[1]}\n{sys.exc_info()[2]}") - - - - @TimeTrackingWrapper def calculate_test_score(self): """Evaluate test score of model and save locally.""" diff --git a/test/test_configuration/test_defaults.py b/test/test_configuration/test_defaults.py index b4659029..4234b788 100644 --- a/test/test_configuration/test_defaults.py +++ b/test/test_configuration/test_defaults.py @@ -75,4 +75,6 @@ class TestAllDefaults: assert DEFAULT_PLOT_LIST == ["PlotMonthlySummary", "PlotStationMap", "PlotClimatologicalSkillScore", "PlotTimeSeries", "PlotCompetitiveSkillScore", "PlotFeatureImportanceSkillScore", "PlotConditionalQuantiles", "PlotAvailability", "PlotAvailabilityHistogram", - "PlotDataHistogram", "PlotPeriodogram", "PlotSampleUncertaintyFromBootstrap"] + "PlotDataHistogram", "PlotPeriodogram", "PlotSampleUncertaintyFromBootstrap", + "PlotErrorMetrics", "PlotDataMonthlyDistribution", "PlotTimeEvolutionMetric", + "PlotSeasonalMSEStack", "PlotErrorsOnMap"] -- GitLab