From 71486a54078355a668d1901143b5935347d78649 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 19:12:20 +0200 Subject: [PATCH] Attemps to use the sampling_rate in _vab_pulse --- measure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/measure.py b/measure.py index a0544900..d857e01d 100644 --- a/measure.py +++ b/measure.py @@ -73,7 +73,7 @@ class OhmPiHardware: if polarity is not None and polarity != self.tx.polarity: self.tx.polarity = polarity self.tx.voltage = vab - data = np.ndarray() + data = None injection = Thread(target=inject, args=[self], kwargs={'duration':length}) readings = Thread(target=read_values, args=[self, data], kwargs={'sampling_rate': sampling_rate}) # set gains automatically -- GitLab