aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2018-03-29 17:54:48 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2018-03-29 17:54:48 +0200
commit26052607d3bc99803784f4082212fe31e76efbdf (patch)
tree5a0f4470e7602639cdbc5a449c9e467ff6500dae
parentec316eab03d9d0a5541bd613ea663e3056e71d12 (diff)
daq: fix resistor_values parameters listdaq-fix-resistor_values
resistor_values is an array of float and not int as the shunt resistors are most of the time lower than 1 Ohm. With kind=list_of_ints, all resistor values are rounded to 0. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r--wa/instruments/energy_measurement.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wa/instruments/energy_measurement.py b/wa/instruments/energy_measurement.py
index 5434b0b0..2be5d1ca 100644
--- a/wa/instruments/energy_measurement.py
+++ b/wa/instruments/energy_measurement.py
@@ -65,7 +65,7 @@ class DAQBackend(EnergyInstrumentBackend):
name = 'daq'
parameters = [
- Parameter('resistor_values', kind=list_of_ints,
+ Parameter('resistor_values', kind=list,
global_alias='daq_resistor_values',
description="""
The values of resistors (in Ohms) across which the voltages