mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +00:00
Merge pull request #109 from bjackman/remove-pandas
energy_probe: Remove unused pandas try-import
This commit is contained in:
commit
d27c8e3362
@ -20,11 +20,6 @@ import tempfile
|
|||||||
import struct
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
try:
|
|
||||||
import pandas
|
|
||||||
except ImportError:
|
|
||||||
pandas = None
|
|
||||||
|
|
||||||
from devlib.instrument import Instrument, CONTINUOUS, MeasurementsCsv
|
from devlib.instrument import Instrument, CONTINUOUS, MeasurementsCsv
|
||||||
from devlib.exception import HostError
|
from devlib.exception import HostError
|
||||||
from devlib.utils.misc import which
|
from devlib.utils.misc import which
|
||||||
@ -50,9 +45,6 @@ class EnergyProbeInstrument(Instrument):
|
|||||||
if self.caiman is None:
|
if self.caiman is None:
|
||||||
raise HostError('caiman must be installed on the host '
|
raise HostError('caiman must be installed on the host '
|
||||||
'(see https://github.com/ARM-software/caiman)')
|
'(see https://github.com/ARM-software/caiman)')
|
||||||
if pandas is None:
|
|
||||||
self.logger.info("pandas package will significantly speed up this instrument")
|
|
||||||
self.logger.info("to install it try: pip install pandas")
|
|
||||||
self.attributes_per_sample = 3
|
self.attributes_per_sample = 3
|
||||||
self.bytes_per_sample = self.attributes_per_sample * 4
|
self.bytes_per_sample = self.attributes_per_sample * 4
|
||||||
self.attributes = ['power', 'voltage', 'current']
|
self.attributes = ['power', 'voltage', 'current']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user