HedTypeCount

class HedTypeCount(type_value, type_tag, file_name=None)[source]

Manager of the counts of tags for one type tag such as Condition-variable or Task.

Parameters:
  • type_value (str) – The value of the variable to be counted.

  • type_tag (str) – The type of variable.

Examples

HedTypeCounts(‘SymmetricCond’, ‘condition-variable’) keeps counts of Condition-variable/Symmetric.

Methods

HedTypeCount.__init__(type_value, type_tag)

HedTypeCount.get_summary()

Return the summary of one value of one type tag.

HedTypeCount.to_dict()

Return count information as a dictionary.

HedTypeCount.update(type_sum, file_id)

Update the counts from a HedTypeValues.

Attributes

HedTypeCount.__init__(type_value, type_tag, file_name=None)[source]
HedTypeCount.get_summary()[source]

Return the summary of one value of one type tag.

Returns:

Count information for one tag of one type.

Return type:

dict

HedTypeCount.to_dict()[source]

Return count information as a dictionary.

HedTypeCount.update(type_sum, file_id)[source]

Update the counts from a HedTypeValues.

Parameters:
  • type_sum (dict) – Information about the contents for a particular data file.

  • file_id (str or None) – Name of the file associated with the counts.