hdmf.common.multi module

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

Bases: MultiContainerInterface

Parameters:
  • name (str) – the name of this container

  • containers (list or tuple) – the Container or Data objects in this file

property 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:

Container or Data

add_container(containers)

Add one or multiple Container or Data objects to this SimpleMultiContainer

Parameters:

containers (list or tuple or dict or Container or Data) – one or multiple Container or Data objects to add to this SimpleMultiContainer

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:

Container or Data

namespace = 'hdmf-common'