From df4d5417b6e15ead7a8e1685862fbcd8253cd88d Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Mon, 16 Oct 2017 14:14:16 +0200 Subject: [PATCH] Failing to get data from the ZI is a hard error (#685) dont pretend that it's not --- qcodes/instrument_drivers/ZI/ZIUHFLI.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcodes/instrument_drivers/ZI/ZIUHFLI.py b/qcodes/instrument_drivers/ZI/ZIUHFLI.py index 4f58ca85749..1be926bda8d 100644 --- a/qcodes/instrument_drivers/ZI/ZIUHFLI.py +++ b/qcodes/instrument_drivers/ZI/ZIUHFLI.py @@ -495,8 +495,10 @@ def get(self): error_counter += 1 if error_counter >= num_retries: - log.warning('[+] ZI scope acquisition failed, maximum number' - 'of retries performed. No data returned') + log.error('[+] ZI scope acquisition failed, maximum number' + 'of retries performed. No data returned') + raise RuntimeError('[+] ZI scope acquisition failed, maximum number' + 'of retries performed. No data returned') finally: # cleanup and make ready for next scope acquisition scope.finish()