From b9c450805e92e221d3c85597062e17a35dfea3e9 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Mon, 9 Oct 2023 16:15:57 +0200 Subject: [PATCH] Searches for run_measurement error --- ohmpi/hardware_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index c3c73c48..f46c517b 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -404,7 +404,7 @@ class OhmPiHardware: assert 0. <= duty_cycle <= 1. if duty_cycle < 1.: durations = [cycle_duration/2 * duty_cycle, cycle_duration/2*(1.-duty_cycle)] * 2 * cycles - pol = [-self.tx.polarity * np.heaviside(i % 2, -1.) for i in range(2 * cycles)] + pol = [-int(self.tx.polarity * np.heaviside(i % 2, -1.)) for i in range(2 * cycles)] polarities = [0] * (len(pol) * 2) polarities[0::2] = pol else: -- GitLab