HedSchemaUnitSection¶
- class HedSchemaUnitSection(section_key, case_sensitive=True)[source]
The schema section containing units.
Methods
|
Construct schema section. |
Return the name associated with key. |
|
Return entries or names with given attribute. |
|
Return the items. |
|
The names of the keys. |
|
All names of the sections. |
Attributes
- HedSchemaUnitSection.__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.
- HedSchemaUnitSection.get(key)¶
Return the name associated with key.
- Parameters:
key (str) – The name of the key.
- HedSchemaUnitSection.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
- HedSchemaUnitSection.items()¶
Return the items.
- HedSchemaUnitSection.keys()¶
The names of the keys.
- HedSchemaUnitSection.values()¶
All names of the sections.
- HedSchemaUnitSection.duplicate_names¶
- HedSchemaUnitSection.section_key¶