obci_readmanager.signal_processing.tags.read_tags_source module¶
This module provides classes for managing tag from source.
- Author:
- Mateusz Kruszyński <mateusz.kruszynski@gmail.com>
Bases:
obci_readmanager.signal_processing.tags.read_tags_source.TagsSource
Subclass of class ‘TagsSource’, manage tags from file and memory_source.
Get tags of given type :param p_tag_type from memory_source or read from p_file.
Parameters: - p_tag_type – type of tag
- p_from – start timestamp
- p_len – number of tag
- p_func – logic who to choose tag eg. tag[‘desc’][u’index’] == tag[‘desc’][u’target’]
If MemoryTagsSource is not None: set tags in memory_source else: create MemoryTagsSource and set tags.
Bases:
obci_readmanager.signal_processing.tags.read_tags_source.TagsSource
Subclass of class ‘TagsSource’, stores tags in memory in ‘dict’ structure.
Get tags of given type.
Parameters: - p_tag_type – type of tag
- p_from – start timestamp
- p_len – number of tag
- p_func – logic who to choose tag eg. tag[‘desc’][u’index’] == tag[‘desc’][u’target’]
Returns: filtered tags
Set tags.
Parameters: p_tag – dictionary with tags.
Bases:
object
Base TagsSource class.
Method must be implemented in subclass.