HedSchemaTagSection

class HedSchemaTagSection(*args, case_sensitive=False, **kwargs)[source]

A section of the schema.

Methods

hed.schema.hed_schema_section.HedSchemaTagSection.__init__(*args)

Construct schema section.

hed.schema.hed_schema_section.HedSchemaTagSection.get(key)

Return the name associated with key.

hed.schema.hed_schema_section.HedSchemaTagSection.get_entries_with_attribute(...)

Return entries or names with given attribute.

hed.schema.hed_schema_section.HedSchemaTagSection.items()

Return the items.

hed.schema.hed_schema_section.HedSchemaTagSection.keys()

The names of the keys.

hed.schema.hed_schema_section.HedSchemaTagSection.values()

All names of the sections.

Attributes

hed.schema.hed_schema_section.HedSchemaTagSection.duplicate_names

hed.schema.hed_schema_section.HedSchemaTagSection.section_key

HedSchemaTagSection.__init__(*args, case_sensitive=False, **kwargs)[source]

Construct schema section.

Parameters:
  • section_key (HedSectionKey) – Name of the schema section.

  • case_sensitive (bool) – If True, names are case-sensitive.

HedSchemaTagSection.get(key)[source]

Return the name associated with key.

Parameters:

key (str) – The name of the key.

HedSchemaTagSection.get_entries_with_attribute(attribute_name, return_name_only=False, schema_namespace='')

Return entries or names with given attribute.

Parameters:
  • attribute_name (str) – The name of the attribute(generally a HedKey entry).

  • return_name_only (bool) – If true, return the name as a string rather than the tag entry.

  • schema_namespace (str) – Prepends given namespace to each name if returning names.

Returns:

List of HedSchemaEntry or strings representing the names.

Return type:

list

HedSchemaTagSection.items()

Return the items.

HedSchemaTagSection.keys()

The names of the keys.

HedSchemaTagSection.values()

All names of the sections.

HedSchemaTagSection.duplicate_names
HedSchemaTagSection.section_key