pynwb.core module

pynwb.core.set_parents(container, parent)
class pynwb.core.NWBBaseType(name, parent=None, container_source=None)

Bases: object

The base class to any NWB types.

The purpose of this class is to provide a mechanism for representing hierarchical relationships in neurodata.

Parameters:
  • name (str) – the name of this container
  • parent (NWBContainer) – the parent Container for this Container
  • container_source (object) – the source of this Container e.g. file name
name
container_source

The source of this Container e.g. file name or table

fields
parent

The parent NWBContainer of this NWBContainer

class pynwb.core.NWBContainer(source, name, parent=None, container_source=None)

Bases: pynwb.core.NWBBaseType, pynwb.form.container.Container

Parameters:
  • source (str) – a description of where this NWBContainer came from
  • name (str) – the name of this container
  • parent (NWBContainer) – the parent Container for this Container
  • container_source (object) – the source of this Container e.g. file name
source
help
class pynwb.core.NWBData(name, data, parent=None, container_source=None)

Bases: pynwb.core.NWBBaseType, pynwb.form.container.Data

Parameters:
  • name (str) – the name of this container
  • data (Iterable or Data) – the source of the data
  • parent (NWBContainer) – the parent Container for this Container
  • container_source (object) – the source of this Container e.g. file name
data
help
class pynwb.core.NWBTable(columns, name, data=[], parent=None, container_source=None)

Bases: pynwb.core.NWBData

Parameters:
  • columns (list or tuple) – a list of the columns in this table
  • name (str) – the name of this container
  • data (Iterable) – the source of the data
  • parent (NWBContainer) – the parent Container for this Container
  • container_source (object) – the source of this Container e.g. file name
columns
add_row(values)
Parameters:values (dict) – the values for each column
query(kwargs)

Query a table

Parameters:kwargs (dict) – the column to query by
class pynwb.core.NWBTableRegion(name, table, region)

Bases: pynwb.core.NWBData, pynwb.form.container.DataRegion

A class for representing regions i.e. slices or indices into an NWBTable

Parameters:
  • name (str) – the name of this container
  • table (NWBTable) – the ElectrodeTable this region applies to
  • region (slice or list or tuple or RegionReference) – the indices of the table
table

The ElectrodeTable this region applies to

region

The indices into table