pynwb.event module
- class pynwb.event.TimestampVectorData(name, description, data=[], resolution=None)[source]
Bases:
VectorDataA 1-dimensional VectorData that stores timestamps in seconds from the session start time.
- Parameters:
name (
str) – Name of this TimestampVectorDatadescription (
str) – Description of this TimestampVectorDatadata (
ndarrayorlistortupleorDatasetorArrayorStrDatasetorHDMFDatasetorAbstractDataChunkIteratororDataIO) – a dataset where the first dimension is a concatenation of multiple vectorsresolution (
float) – The temporal resolution of the timestamps, in seconds. This is typically the sampling period (1 / sampling_rate), also known as the clock period, of the data acquisition system from which the timestamps were recorded or derived.
- property unit
The unit of measurement for the timestamps, fixed to ‘seconds’.
- namespace = 'core'
- neurodata_type = 'TimestampVectorData'
- class pynwb.event.DurationVectorData(name, description, data=[], resolution=None)[source]
Bases:
VectorDataA 1-dimensional VectorData that stores durations in seconds.
- Parameters:
name (
str) – Name of this DurationVectorDatadescription (
str) – Description of this DurationVectorDatadata (
ndarrayorlistortupleorDatasetorArrayorStrDatasetorHDMFDatasetorAbstractDataChunkIteratororDataIO) – a dataset where the first dimension is a concatenation of multiple vectorsresolution (
float) – The temporal resolution of the durations, in seconds. This is typically the sampling period (1 / sampling_rate), also known as the clock period, of the data acquisition system from which the durations were recorded or derived.
- property unit
The unit of measurement for the durations, fixed to ‘seconds’.
- namespace = 'core'
- neurodata_type = 'DurationVectorData'
- class pynwb.event.EventsTable(name, description, id=None, columns=None, colnames=None, target_tables=None, meanings_tables=None)[source]
Bases:
DynamicTableA column-based table to store information about events (event instances), one event per row. Additional columns may be added to store metadata about each event, such as the duration of the event.
- Parameters:
name (
str) – Name of this EventsTabledescription (
str) – A description of the events stored in the table, including information about how the event times were computed.id (
ndarrayorlistortupleorDatasetorArrayorStrDatasetorHDMFDatasetorAbstractDataChunkIteratororDataIOorElementIdentifiers) – the identifiers for this tablecolnames (
ndarrayorlistortupleorDatasetorArrayorStrDatasetorHDMFDatasetorAbstractDataChunkIterator) – the ordered names of the columns in this table. columns must also be provided.target_tables (
dict) – dict mapping DynamicTableRegion column name to the table that the DTR points to. The column is added to the table if it is not already present (i.e., when it is optional).meanings_tables (
tupleorlist) – MeaningsTable objects that provide meanings for values in VectorData columns. Each MeaningsTable must have a name of “{column_name}_meanings” where column_name is the name of the target column in this DynamicTable. The target column must exist in this table.
- namespace = 'core'
- neurodata_type = 'EventsTable'