From 5906bca6b3c33ba17c2373e75b3673e06a11cb47 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 18 Nov 2019 15:57:33 +0000 Subject: [PATCH] instruments/acme_cape: Fix missing parameter to `get_instruments` The signature of `get_instruments` was missing the `keep_raw` parameter so fix this and use it as part of the subsequent common invocation. --- wa/instruments/energy_measurement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wa/instruments/energy_measurement.py b/wa/instruments/energy_measurement.py index 6e2717d8..934cf584 100644 --- a/wa/instruments/energy_measurement.py +++ b/wa/instruments/energy_measurement.py @@ -310,7 +310,7 @@ class AcmeCapeBackend(EnergyInstrumentBackend): # pylint: disable=arguments-differ def get_instruments(self, target, metadir, - iio_capture, host, iio_devices, buffer_size): + iio_capture, host, iio_devices, buffer_size, keep_raw): # # Devlib's ACME instrument uses iio-capture under the hood, which can @@ -331,7 +331,7 @@ class AcmeCapeBackend(EnergyInstrumentBackend): for iio_device in iio_devices: ret[iio_device] = AcmeCapeInstrument( target, iio_capture=iio_capture, host=host, - iio_device=iio_device, buffer_size=buffer_size, keep_raw=self.keep_raw) + iio_device=iio_device, buffer_size=buffer_size, keep_raw=keep_raw) return ret