HedTagCounts¶
- class HedTagCounts(name, total_events=0)[source]
Counts of HED tags for a tabular file.
- Parameters:
name (str) – An identifier for these counts (usually the filename of the tabular file)
total_events (int) – The total number of events in the tabular file.
Methods
|
|
|
|
|
|
|
|
|
Organize tags into categories as specified by the tag_template. |
|
Update the tag counts based on a hed string object. |
Attributes
- HedTagCounts.organize_tags(tag_template)[source]¶
Organize tags into categories as specified by the tag_template.
- Parameters:
tag_template (dict) – A dictionary whose keys are titles and values are lists of HED tags (str).
- Returns:
dict - keys are tags (strings) and values are list of HedTagCount for items fitting template. list - of HedTagCount objects corresponding to tags that don’t fit the template.