mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
98b259be33
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.