1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00
workload-automation/wlauto/instrumentation/energy_model
Sergei Trofimov 98b259be33 energy_model: fix np.vectorize on ImportError
np.vectorize was being unconditionally invoked at top level. On an
ImportError, np as set to None, so this was resuling in an
AttributeError when loading the module if one of the dependent libraries
was not present on the host system. This moves the invocation into the
try block with the imports to avoid an error when energy_model module is
loaded by the extension is not used.
2015-05-12 11:34:30 +01:00
..
__init__.py energy_model: fix np.vectorize on ImportError 2015-05-12 11:34:30 +01:00
em.template Adding energy_model instrument. 2015-05-11 12:12:40 +01:00
report.template Adding energy_model instrument. 2015-05-11 12:12:40 +01:00