Commit b9c45080 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Searches for run_measurement error

Showing with 1 addition and 1 deletion
+1 -1
...@@ -404,7 +404,7 @@ class OhmPiHardware: ...@@ -404,7 +404,7 @@ class OhmPiHardware:
assert 0. <= duty_cycle <= 1. assert 0. <= duty_cycle <= 1.
if duty_cycle < 1.: if duty_cycle < 1.:
durations = [cycle_duration/2 * duty_cycle, cycle_duration/2*(1.-duty_cycle)] * 2 * cycles 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] * (len(pol) * 2)
polarities[0::2] = pol polarities[0::2] = pol
else: else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment