From 7fc8be23424ca241813385824ef7c7ce2758a136 Mon Sep 17 00:00:00 2001 From: Tobias Hangleiter <tobias.hangleiter@rwth-aachen.de> Date: Wed, 12 Mar 2025 17:36:50 +0100 Subject: [PATCH] Default to no delay for finite test time --- src/python_spectrometer/daq/simulator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python_spectrometer/daq/simulator.py b/src/python_spectrometer/daq/simulator.py index 6157f0a..c6f2198 100644 --- a/src/python_spectrometer/daq/simulator.py +++ b/src/python_spectrometer/daq/simulator.py @@ -2,9 +2,9 @@ The :meth:`DAQ.acquire` method of DAQs in this module accepts a ``delay`` keyword argument which introduces a delay in between yields -to simulate a finite data acquisition time. If True (default), delays -by the amount of time it would take to actually acquire data with the -given settings; if float delays by the given amount. +to simulate a finite data acquisition time. If True, delays by the +amount of time it would take to actually acquire data with the given +settings; if float delays by the given amount. Examples -------- @@ -58,7 +58,7 @@ def with_delay(meth): """Wraps an acquisition generator to accept the *delay* kwarg.""" @wraps(meth) - def wrapped(self, *, delay=True, **settings): + def wrapped(self, *, delay=False, **settings): skip_delay = settings.pop('_skip_delay', False) if delay is True: -- GitLab