HedTagManager

class HedTagManager(event_manager, remove_types=[])[source]

Manager for the HED tags from a columnar file.

Methods

HedTagManager.__init__(event_manager[, ...])

Create a tag manager for one tabular file.

HedTagManager.get_hed_obj(hed_str[, ...])

Return a HED string object with the types removed.

HedTagManager.get_hed_objs([...])

Return a list of HED string objects of same length as the tabular file.

Attributes

HedTagManager.__init__(event_manager, remove_types=[])[source]

Create a tag manager for one tabular file.

Parameters:
  • event_manager (EventManager) – an event manager for the tabular file.

  • remove_types (list or None) – List of type tags (such as condition-variable) to remove.

HedTagManager.get_hed_obj(hed_str, remove_types=False, remove_group=False)[source]

Return a HED string object with the types removed.

Parameters:
  • hed_str (str) – Represents a HED string.

  • remove_types (bool) – If False (the default), do not remove the types managed by this manager.

  • remove_group (bool) – If False (the default), do not remove the group when removing a type tag, otherwise remove its enclosing group.

HedTagManager.get_hed_objs(include_context=True, replace_defs=False)[source]

Return a list of HED string objects of same length as the tabular file.

Parameters:
  • include_context (bool) – If True (default), include the Event-context group in the HED string.

  • replace_defs (bool) – If True (default=False), replace the Def tags with Definition contents.

Returns:

list - List of HED strings of same length as tabular file.