From e70b939c8131136ee5df5f4ed2b8b048f6162836 Mon Sep 17 00:00:00 2001 From: Pim Nelissen Date: Sun, 17 May 2026 07:31:42 +0200 Subject: [PATCH] suppress matplotlib and PIL debug logging --- src/pg_rad/plotting/landscape_plotter.py | 1 + src/pg_rad/plotting/result_plotter.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/pg_rad/plotting/landscape_plotter.py b/src/pg_rad/plotting/landscape_plotter.py index 3c42d8c..1a1ab51 100644 --- a/src/pg_rad/plotting/landscape_plotter.py +++ b/src/pg_rad/plotting/landscape_plotter.py @@ -7,6 +7,7 @@ from matplotlib.patches import Circle from pg_rad.landscape.landscape import Landscape logger = logging.getLogger(__name__) +plt.set_loglevel(level='warning') class LandscapeSlicePlotter: diff --git a/src/pg_rad/plotting/result_plotter.py b/src/pg_rad/plotting/result_plotter.py index d1f2f7a..4406cff 100644 --- a/src/pg_rad/plotting/result_plotter.py +++ b/src/pg_rad/plotting/result_plotter.py @@ -10,6 +10,9 @@ from pg_rad.simulator.outputs import SimulationOutput from pg_rad.landscape.landscape import Landscape +plt.set_loglevel(level='warning') + + class ResultPlotter: def __init__(self, landscape: Landscape, output: SimulationOutput): self.landscape = landscape