HedSchemaUnitClassSection

class HedSchemaUnitClassSection(section_key, case_sensitive=True)[source]

Methods

hed.schema.hed_schema_section.HedSchemaUnitClassSection.__init__(...)

Construct schema section.

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

Return the name associated with key.

hed.schema.hed_schema_section.HedSchemaUnitClassSection.get_entries_with_attribute(...)

Return entries or names with given attribute.

hed.schema.hed_schema_section.HedSchemaUnitClassSection.items()

Return the items.

hed.schema.hed_schema_section.HedSchemaUnitClassSection.keys()

The names of the keys.

hed.schema.hed_schema_section.HedSchemaUnitClassSection.values()

All names of the sections.

Attributes

hed.schema.hed_schema_section.HedSchemaUnitClassSection.duplicate_names

hed.schema.hed_schema_section.HedSchemaUnitClassSection.section_key

HedSchemaUnitClassSection.__init__(section_key, case_sensitive=True)

Construct schema section.

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

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

HedSchemaUnitClassSection.get(key)

Return the name associated with key.

Parameters:

key (str) – The name of the key.

HedSchemaUnitClassSection.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

HedSchemaUnitClassSection.items()

Return the items.

HedSchemaUnitClassSection.keys()

The names of the keys.

HedSchemaUnitClassSection.values()

All names of the sections.

HedSchemaUnitClassSection.duplicate_names
HedSchemaUnitClassSection.section_key