hdmf.common.multi module

class hdmf.common.multi.SimpleMultiContainer(name, containers=None)

Bases: hdmf.container.MultiContainerInterface

Parameters:
  • name (str) – the name of this container
  • containers (list or tuple) – the Container or Data objects in this file
containers

a dictionary containing the Container or Data in this SimpleMultiContainer

__getitem__(name=None)

Get a Container from this SimpleMultiContainer

Parameters:name (str) – the name of the Container or Data
Returns:the Container or Data with the given name
Return type:(<class ‘hdmf.container.Container’>, <class ‘hdmf.container.Data’>)
add_container(containers)

Add a Container to this SimpleMultiContainer

Parameters:containers (list or tuple or dict or Container or Data) – the Container or Data to add
data_type = 'SimpleMultiContainer'
get_container(name=None)

Get a Container from this SimpleMultiContainer

Parameters:name (str) – the name of the Container or Data
Returns:the Container or Data with the given name
Return type:(<class ‘hdmf.container.Container’>, <class ‘hdmf.container.Data’>)
namespace = 'hdmf-common'