HedTypeCount

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

Keeps a summary of one value of one type of variable.

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

hed.tools.analysis.hed_type_counts.HedTypeCount.__init__(...)

hed.tools.analysis.hed_type_counts.HedTypeCount.get_summary()

hed.tools.analysis.hed_type_counts.HedTypeCount.to_dict()

hed.tools.analysis.hed_type_counts.HedTypeCount.update(...)

Update the counts from a HedTypeValues.

Attributes

HedTypeCount.__init__(type_value, type_tag, file_name=None)[source]
HedTypeCount.get_summary()[source]
HedTypeCount.to_dict()[source]
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.