pynwb.epoch module
- class pynwb.epoch.TimeIntervals(name, description='experimental intervals', id=None, columns=None, colnames=None, target_tables=None, meanings_tables=None)[source]
Bases:
DynamicTableTable for storing Epoch data
- Parameters:
name (
str) – name of this TimeIntervalsdescription (
str) – Description of this TimeIntervalsid (
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.
- get_starting_time()[source]
Get the earliest start time across all intervals in this TimeIntervals table.
- Returns:
The earliest start time in seconds, or None if the table is empty.
- Return type:
float or None
- get_duration()[source]
Get the total duration from the earliest start time to the latest stop time.
- Returns:
The duration in seconds, or None if the table is empty.
- Return type:
float or None
Notes
The duration represents the time span from the earliest interval start to the latest interval stop, not the sum of individual interval durations.
- namespace = 'core'
- neurodata_type = 'TimeIntervals'