Skip to content
Snippets Groups Projects
Select Git revision
  • a034304b955b9c326400c6e3adae18e2da1024f3
  • master default protected
  • gec-95-add-filter-skymodel
  • gec-105-lint-skymodel-filter
  • add-coverage-badge
  • releases/1.6
  • releases/1.5
  • rap-457-implement-ci-v2
  • test_heroku
  • action-python-publish
  • v1.7.1
  • v1.7.0
  • v1.6.2
  • v1.6.1
  • v1.6.post1
  • v1.6
  • v1.5.1
  • v1.5.0
  • v1.4.11
  • v1.4.10
  • v1.4.9
  • v1.4.8
  • v1.4.7
  • v1.4.6
  • v1.4.5
  • v1.4.4
  • v1.4.3
  • v1.4.2
  • v1.4.1
  • v1.4.0
30 results

basic.css

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    get_internal_attribute_history.py 573 B
    #! /usr/bin/env python3
    
    
    from tango import DeviceProxy
    from numpy import array, transpose
    
    
    def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, depth: int = 10):
        try:
            history = array(device.attribute_history(attr_name = attribute_name, depth = depth))
        except Exception as 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])
        values = history_values.transpose()
        return values