Skip to content
Snippets Groups Projects

Add a convenience func to retrieve the internal attr. hist.

2 unresolved threads
@@ -9,7 +9,7 @@ def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, dep
try:
history = array(device.attribute_history(attr_name = attribute_name, depth = depth))
except Exception as e:
raise ValueError("An exception was raised when attempting to access the internal history of the attribute '{}/{}'.".format(device.name(), attribute_name)) from e
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()
Loading