HedTagCount

class HedTagCount(hed_tag, file_name)[source]

Counts for a particular HedTag in particular file.

Methods

HedTagCount.__init__(hed_tag, file_name)

param hed_tag:

The HedTag to keep track of.

HedTagCount.get_empty()

HedTagCount.get_info([verbose])

Return counts for this tag.

HedTagCount.get_summary()

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

HedTagCount.set_value(hed_tag)

Update the tag term value counts for a HedTag.

Attributes

HedTagCount.__init__(hed_tag, file_name)[source]
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]

Return counts for this tag.

Parameters:

verbose (bool) – If False (the default) only number of files included, otherwise a list of files.

Returns:

Keys are ‘tag’, ‘events’, and ‘files’.

Return type:

dict

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.