1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

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.
This commit is contained in:
Marc Bonnici 2019-11-18 15:57:33 +00:00 committed by setrofim
parent 9556c3a004
commit 5906bca6b3

View File

@ -310,7 +310,7 @@ class AcmeCapeBackend(EnergyInstrumentBackend):
# pylint: disable=arguments-differ # pylint: disable=arguments-differ
def get_instruments(self, target, metadir, 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 # 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: for iio_device in iio_devices:
ret[iio_device] = AcmeCapeInstrument( ret[iio_device] = AcmeCapeInstrument(
target, iio_capture=iio_capture, host=host, 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 return ret