HedTagCount

class HedTagCount(hed_tag, file_name)[source]

Methods

hed.tools.analysis.hed_tag_counts.HedTagCount.__init__(...)

Counts for a particular HedTag in particular file.

hed.tools.analysis.hed_tag_counts.HedTagCount.get_empty()

hed.tools.analysis.hed_tag_counts.HedTagCount.get_info([...])

hed.tools.analysis.hed_tag_counts.HedTagCount.get_summary()

Return a dictionary summary of the events and files for this tag.

hed.tools.analysis.hed_tag_counts.HedTagCount.set_value(hed_tag)

Update the tag term value counts for a HedTag.

Attributes

HedTagCount.__init__(hed_tag, file_name)[source]

Counts for a particular HedTag in particular file.

Parameters:
  • hed_tag (HedTag) – The HedTag to keep track of.

  • file_name (str) – Name of the file associated with the tag.

HedTagCount.get_empty()[source]
HedTagCount.get_info(verbose=False)[source]
HedTagCount.get_summary()[source]

Return a dictionary summary of the events and files for this tag.

Returns:

dictionary summary of events and files that contain this tag.

Return type:

dict

HedTagCount.set_value(hed_tag)[source]

Update the tag term value counts for a HedTag.

Parameters:

hed_tag (HedTag or None) – Item to use to update the value counts.