From b89f94e95ea4ad9a2e4c31134963db5407dfef62 Mon Sep 17 00:00:00 2001 From: jurges <4-jurges@users.noreply.git.astron.nl> Date: Fri, 2 Apr 2021 14:23:15 +0200 Subject: [PATCH] Remove the superfluous value extraction --- lib/get_internal_attribute_history.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/get_internal_attribute_history.py b/lib/get_internal_attribute_history.py index b9f988827..735be0161 100755 --- a/lib/get_internal_attribute_history.py +++ b/lib/get_internal_attribute_history.py @@ -12,6 +12,5 @@ def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, dep raise ValueError("Cannot access the internal history of the attribute '{}/{}'.".format(device.name(), attribute_name)) from e history_values = array([entry.value for entry in history]) - history_values_transposed = history_values.transpose() - values = array([vals for vals in history_values_transposed]) + values = history_values.transpose() return values -- GitLab