From 914372c7b7e6cc49aecb9bd0dadd0e5454d5081d Mon Sep 17 00:00:00 2001 From: THuckemann Date: Wed, 7 Feb 2024 12:24:30 +0100 Subject: [PATCH] Checking whether Unittest issues are related to catch_interrupts import. --- src/qumada/measurement/doNd_enhanced/doNd_enhanced.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qumada/measurement/doNd_enhanced/doNd_enhanced.py b/src/qumada/measurement/doNd_enhanced/doNd_enhanced.py index e35e4d43..68131b4e 100644 --- a/src/qumada/measurement/doNd_enhanced/doNd_enhanced.py +++ b/src/qumada/measurement/doNd_enhanced/doNd_enhanced.py @@ -41,12 +41,16 @@ from qcodes.dataset.descriptions.detect_shapes import detect_shape_of_measurement from qcodes.dataset.descriptions.versioning.rundescribertypes import Shapes from qcodes.dataset.dond.do_nd_utils import ( - _catch_interrupts, + # _catch_interrupts, _handle_plotting, _register_actions, _register_parameters, _set_write_period, ) +try: + from qcodes.dataset.dond.do_nd_utils import _catch_interrupts +except ImportError: + from qcodes.dataset.dond.do_nd_utils import catch_interrupts as _catch_interrupts from qcodes.dataset.experiment_container import Experiment from qcodes.dataset.measurements import Measurement from qcodes.dataset.threading import ( # SequentialParamsCaller,; ThreadPoolParamsCaller,