HedTypeCounts

class HedTypeCounts(name, type_tag)[source]

Keeps a summary of tag counts for a file.

Methods

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

hed.tools.analysis.hed_type_counts.HedTypeCounts.add_descriptions(...)

Update this summary based on the type variable map.

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

hed.tools.analysis.hed_type_counts.HedTypeCounts.update(counts)

hed.tools.analysis.hed_type_counts.HedTypeCounts.update_summary(...)

Update this summary based on the type variable map.

Attributes

HedTypeCounts.__init__(name, type_tag)[source]
HedTypeCounts.add_descriptions(type_defs)[source]

Update this summary based on the type variable map.

Parameters:

type_defs (HedTypeDefs) – Contains the information about the value of a type.

HedTypeCounts.get_summary()[source]
HedTypeCounts.update(counts)[source]
HedTypeCounts.update_summary(type_sum, total_events=0, file_id=None)[source]

Update this summary based on the type variable map.

Parameters:
  • type_sum (dict) – Contains the information about the value of a type.

  • total_events (int) – Total number of events processed.

  • file_id (str) – Unique identifier for the associated file.