Skip to content
Snippets Groups Projects
Select Git revision
  • 55f9f5a25a7e3100a247f5627a0e17e184125413
  • main default protected
  • hotfix
  • fixes
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4
  • 2.3
  • 2.2
  • 2.1
  • 2.0
  • 1.0
14 results

__init__.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    __init__.py 1.41 KiB
    """
    Python module for extracting data from Archive Extractor Tango Device.
    
    Example scripts available on GitLab: https://gitlab.synchrotron-soleil.fr/dg/archiveextractor/-/tree/main/examples
    
    Main functions
        * findattr
            Look into the list of archived attributes for matching names.
        * extract
            Entry point function for data extraction.
    
    Quick usage in ipython shell:
    
        In [1]: import ArchiveExtractor as AE
        In [2]: AE.findattr("ans/dg/*dcct*")
        In [3]: AE.extract('ANS/DG/DCCT-CTRL/current', '2021-12-13', '2021-12-13-12:00', method='between')
    
    """
    
    # NB: Also change version number in setup.py
    __version__ = "2.4.2"
    
    __all__ = ["Access", ]
    
    ##########################################################################
    ###                  Module private variables                          ###
    ##########################################################################
    # Tuple of extractor for HDB and TDB
    _Extractors = (None, None)
    
    # Tuple for attribute tables
    _AttrTables = (None, None)
    
    ##########################################################################
    ###               Functions in Access are entry points                 ###
    ##########################################################################
    from .Access import *
    
    
    ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
    ## Initialize on import
    ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
    init()