From 587245465a9ba8c635fc9b8b65df3ed0bbdfd9f7 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Tue, 20 Jun 2023 18:56:30 +0200 Subject: [PATCH] Switches back mpl backend to tkinter --- ohmpi/hardware_system.py | 3 ++- ohmpi/plots.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index eb6d11fa..1899b8df 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -12,7 +12,8 @@ from ohmpi.utils import update_dict from ohmpi.config import HARDWARE_CONFIG from threading import Thread, Event, Barrier -plt.switch_backend('agg') # for multi-threading... +# plt.switch_backend('agg') # for thread safe operations... + # Define the default controller, a distinct controller could be defined for each tx, rx or mux board # when using a distinct controller, the specific controller definition must be included in the component configuration ctl_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG["ctl"]["model"]}') diff --git a/ohmpi/plots.py b/ohmpi/plots.py index cd735ff5..1e18f32f 100644 --- a/ohmpi/plots.py +++ b/ohmpi/plots.py @@ -2,7 +2,7 @@ import matplotlib.pyplot as plt import numpy as np from ohmpi.utils import parse_log import matplotlib -plt.switch_backend('agg') # for multi-threading... +# plt.switch_backend('agg') # for thread safe operations... def plot_exec_log(exec_log,names=None,last_session=True): # TODO: select session id instead of last session (if -1 : last) -- GitLab