mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-14 02:34:28 +00:00
sneakers-the-rat
be21325123
- split off generated subclasses into "include" files, not sure if that's good, but in any case we have them separable now. - more work on cleanly un-nesting scalar and 1D-vector data into attributes and lists, respectively - brought the pydantic generator in-repo to do a bunch of overrides
327 lines
32 KiB
Python
327 lines
32 KiB
Python
from __future__ import annotations
|
|
from datetime import datetime, date
|
|
from enum import Enum
|
|
from typing import List, Dict, Optional, Any, Union
|
|
from pydantic import BaseModel as BaseModel, Field
|
|
from nptyping import NDArray, Shape, Float, Float32, Double, Float64, LongLong, Int64, Int, Int32, Int16, Short, Int8, UInt, UInt32, UInt16, UInt8, UInt64, Number, String, Unicode, Unicode, Unicode, String, Bool, Datetime64
|
|
import sys
|
|
if sys.version_info >= (3, 8):
|
|
from typing import Literal
|
|
else:
|
|
from typing_extensions import Literal
|
|
|
|
|
|
from .core_nwb_icephys_include import (
|
|
IntracellularRecordingsTableResponses,
|
|
VoltageClampSeriesResistanceCompBandwidth,
|
|
RepetitionsTableSequentialRecordingsIndex,
|
|
ExperimentalConditionsTableRepetitionsIndex,
|
|
SequentialRecordingsTableSimultaneousRecordingsIndex,
|
|
IntracellularResponsesTableResponse,
|
|
VoltageClampSeriesWholeCellCapacitanceComp,
|
|
CurrentClampStimulusSeriesData,
|
|
IntracellularRecordingsTableElectrodes,
|
|
RepetitionsTableSequentialRecordings,
|
|
VoltageClampSeriesCapacitanceSlow,
|
|
IntracellularStimuliTableStimulus,
|
|
VoltageClampSeriesWholeCellSeriesResistanceComp,
|
|
VoltageClampSeriesData,
|
|
ExperimentalConditionsTableRepetitions,
|
|
PatchClampSeriesData,
|
|
VoltageClampSeriesResistanceCompPrediction,
|
|
IntracellularRecordingsTableStimuli,
|
|
CurrentClampSeriesData,
|
|
SimultaneousRecordingsTableRecordingsIndex,
|
|
SequentialRecordingsTableSimultaneousRecordings,
|
|
VoltageClampStimulusSeriesData,
|
|
VoltageClampSeriesResistanceCompCorrection,
|
|
SweepTableSeriesIndex,
|
|
VoltageClampSeriesCapacitanceFast,
|
|
SimultaneousRecordingsTableRecordings
|
|
)
|
|
|
|
from .core_nwb_base import (
|
|
TimeSeries,
|
|
NWBContainer,
|
|
DynamicTable
|
|
)
|
|
|
|
from .hdmf_common_table import (
|
|
AlignedDynamicTable
|
|
)
|
|
|
|
|
|
metamodel_version = "None"
|
|
version = "None"
|
|
|
|
class WeakRefShimBaseModel(BaseModel):
|
|
__slots__ = '__weakref__'
|
|
|
|
class ConfiguredBaseModel(WeakRefShimBaseModel,
|
|
validate_assignment = True,
|
|
validate_all = True,
|
|
underscore_attrs_are_private = True,
|
|
extra = 'forbid',
|
|
arbitrary_types_allowed = True,
|
|
use_enum_values = True):
|
|
pass
|
|
|
|
|
|
class PatchClampSeries(TimeSeries):
|
|
"""
|
|
An abstract base class for patch-clamp data - stimulus or response, current or voltage.
|
|
"""
|
|
stimulus_description: Optional[str] = Field(None, description="""Protocol/stimulus name for this patch-clamp dataset.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
data: PatchClampSeriesData = Field(..., description="""Recorded voltage or current.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class CurrentClampSeries(PatchClampSeries):
|
|
"""
|
|
Voltage data from an intracellular current-clamp recording. A corresponding CurrentClampStimulusSeries (stored separately as a stimulus) is used to store the current injected.
|
|
"""
|
|
data: CurrentClampSeriesData = Field(..., description="""Recorded voltage.""")
|
|
bias_current: Optional[float] = Field(None, description="""Bias current, in amps.""")
|
|
bridge_balance: Optional[float] = Field(None, description="""Bridge balance, in ohms.""")
|
|
capacitance_compensation: Optional[float] = Field(None, description="""Capacitance compensation, in farads.""")
|
|
stimulus_description: Optional[str] = Field(None, description="""Protocol/stimulus name for this patch-clamp dataset.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class IZeroClampSeries(CurrentClampSeries):
|
|
"""
|
|
Voltage data from an intracellular recording when all current and amplifier settings are off (i.e., CurrentClampSeries fields will be zero). There is no CurrentClampStimulusSeries associated with an IZero series because the amplifier is disconnected and no stimulus can reach the cell.
|
|
"""
|
|
stimulus_description: Optional[str] = Field(None, description="""An IZeroClampSeries has no stimulus, so this attribute is automatically set to \"N/A\"""")
|
|
bias_current: float = Field(..., description="""Bias current, in amps, fixed to 0.0.""")
|
|
bridge_balance: float = Field(..., description="""Bridge balance, in ohms, fixed to 0.0.""")
|
|
capacitance_compensation: float = Field(..., description="""Capacitance compensation, in farads, fixed to 0.0.""")
|
|
data: CurrentClampSeriesData = Field(..., description="""Recorded voltage.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class CurrentClampStimulusSeries(PatchClampSeries):
|
|
"""
|
|
Stimulus current applied during current clamp recording.
|
|
"""
|
|
data: CurrentClampStimulusSeriesData = Field(..., description="""Stimulus current applied.""")
|
|
stimulus_description: Optional[str] = Field(None, description="""Protocol/stimulus name for this patch-clamp dataset.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class VoltageClampSeries(PatchClampSeries):
|
|
"""
|
|
Current data from an intracellular voltage-clamp recording. A corresponding VoltageClampStimulusSeries (stored separately as a stimulus) is used to store the voltage injected.
|
|
"""
|
|
data: VoltageClampSeriesData = Field(..., description="""Recorded current.""")
|
|
capacitance_fast: Optional[VoltageClampSeriesCapacitanceFast] = Field(None, description="""Fast capacitance, in farads.""")
|
|
capacitance_slow: Optional[VoltageClampSeriesCapacitanceSlow] = Field(None, description="""Slow capacitance, in farads.""")
|
|
resistance_comp_bandwidth: Optional[VoltageClampSeriesResistanceCompBandwidth] = Field(None, description="""Resistance compensation bandwidth, in hertz.""")
|
|
resistance_comp_correction: Optional[VoltageClampSeriesResistanceCompCorrection] = Field(None, description="""Resistance compensation correction, in percent.""")
|
|
resistance_comp_prediction: Optional[VoltageClampSeriesResistanceCompPrediction] = Field(None, description="""Resistance compensation prediction, in percent.""")
|
|
whole_cell_capacitance_comp: Optional[VoltageClampSeriesWholeCellCapacitanceComp] = Field(None, description="""Whole cell capacitance compensation, in farads.""")
|
|
whole_cell_series_resistance_comp: Optional[VoltageClampSeriesWholeCellSeriesResistanceComp] = Field(None, description="""Whole cell series resistance compensation, in ohms.""")
|
|
stimulus_description: Optional[str] = Field(None, description="""Protocol/stimulus name for this patch-clamp dataset.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class VoltageClampStimulusSeries(PatchClampSeries):
|
|
"""
|
|
Stimulus voltage applied during a voltage clamp recording.
|
|
"""
|
|
data: VoltageClampStimulusSeriesData = Field(..., description="""Stimulus voltage applied.""")
|
|
stimulus_description: Optional[str] = Field(None, description="""Protocol/stimulus name for this patch-clamp dataset.""")
|
|
sweep_number: Optional[int] = Field(None, description="""Sweep number, allows to group different PatchClampSeries together.""")
|
|
gain: Optional[float] = Field(None, description="""Gain of the recording, in units Volt/Amp (v-clamp) or Volt/Volt (c-clamp).""")
|
|
description: Optional[str] = Field(None, description="""Description of the time series.""")
|
|
comments: Optional[str] = Field(None, description="""Human-readable comments about the TimeSeries. This second descriptive field can be used to store additional information, or descriptive information if the primary description field is populated with a computer-readable string.""")
|
|
starting_time: Optional[TimeSeriesStartingTime] = Field(None, description="""Timestamp of the first sample in seconds. When timestamps are uniformly spaced, the timestamp of the first sample can be specified and all subsequent ones calculated from the sampling rate attribute.""")
|
|
timestamps: Optional[TimeSeriesTimestamps] = Field(None, description="""Timestamps for samples stored in data, in seconds, relative to the common experiment master-clock stored in NWBFile.timestamps_reference_time.""")
|
|
control: Optional[TimeSeriesControl] = Field(None, description="""Numerical labels that apply to each time point in data for the purpose of querying and slicing data by these values. If present, the length of this array should be the same size as the first dimension of data.""")
|
|
control_description: Optional[TimeSeriesControlDescription] = Field(None, description="""Description of each control value. Must be present if control is present. If present, control_description[0] should describe time points where control == 0.""")
|
|
sync: Optional[TimeSeriesSync] = Field(None, description="""Lab-specific time and sync information as provided directly from hardware devices and that is necessary for aligning all acquired time information to a common timebase. The timestamp array stores time in the common timebase. This group will usually only be populated in TimeSeries that are stored external to the NWB file, in files storing raw data. Once timestamp data is calculated, the contents of 'sync' are mostly for archival purposes.""")
|
|
|
|
|
|
class IntracellularElectrode(NWBContainer):
|
|
"""
|
|
An intracellular electrode and its metadata.
|
|
"""
|
|
cell_id: Optional[str] = Field(None, description="""unique ID of the cell""")
|
|
description: str = Field(..., description="""Description of electrode (e.g., whole-cell, sharp, etc.).""")
|
|
filtering: Optional[str] = Field(None, description="""Electrode specific filtering.""")
|
|
initial_access_resistance: Optional[str] = Field(None, description="""Initial access resistance.""")
|
|
location: Optional[str] = Field(None, description="""Location of the electrode. Specify the area, layer, comments on estimation of area/layer, stereotaxic coordinates if in vivo, etc. Use standard atlas names for anatomical regions when possible.""")
|
|
resistance: Optional[str] = Field(None, description="""Electrode resistance, in ohms.""")
|
|
seal: Optional[str] = Field(None, description="""Information about seal used for recording.""")
|
|
slice: Optional[str] = Field(None, description="""Information about slice used for recording.""")
|
|
|
|
|
|
class SweepTable(DynamicTable):
|
|
"""
|
|
[DEPRECATED] Table used to group different PatchClampSeries. SweepTable is being replaced by IntracellularRecordingsTable and SimultaneousRecordingsTable tables. Additional SequentialRecordingsTable, RepetitionsTable, and ExperimentalConditions tables provide enhanced support for experiment metadata.
|
|
"""
|
|
sweep_number: Optional[List[int]] = Field(default_factory=list, description="""Sweep number of the PatchClampSeries in that row.""")
|
|
series: Optional[List[PatchClampSeries]] = Field(default_factory=list, description="""The PatchClampSeries with the sweep number in that row.""")
|
|
series_index: SweepTableSeriesIndex = Field(..., description="""Index for series.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class IntracellularElectrodesTable(DynamicTable):
|
|
"""
|
|
Table for storing intracellular electrode related metadata.
|
|
"""
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
electrode: Optional[List[IntracellularElectrode]] = Field(default_factory=list, description="""Column for storing the reference to the intracellular electrode.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class IntracellularStimuliTable(DynamicTable):
|
|
"""
|
|
Table for storing intracellular stimulus related metadata.
|
|
"""
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
stimulus: IntracellularStimuliTableStimulus = Field(..., description="""Column storing the reference to the recorded stimulus for the recording (rows).""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class IntracellularResponsesTable(DynamicTable):
|
|
"""
|
|
Table for storing intracellular response related metadata.
|
|
"""
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
response: IntracellularResponsesTableResponse = Field(..., description="""Column storing the reference to the recorded response for the recording (rows)""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class IntracellularRecordingsTable(AlignedDynamicTable):
|
|
"""
|
|
A table to group together a stimulus and response from a single electrode and a single simultaneous recording. Each row in the table represents a single recording consisting typically of a stimulus and a corresponding response. In some cases, however, only a stimulus or a response is recorded as part of an experiment. In this case, both the stimulus and response will point to the same TimeSeries while the idx_start and count of the invalid column will be set to -1, thus, indicating that no values have been recorded for the stimulus or response, respectively. Note, a recording MUST contain at least a stimulus or a response. Typically the stimulus and response are PatchClampSeries. However, the use of AD/DA channels that are not associated to an electrode is also common in intracellular electrophysiology, in which case other TimeSeries may be used.
|
|
"""
|
|
description: Optional[str] = Field(None, description="""Description of the contents of this table. Inherited from AlignedDynamicTable and overwritten here to fix the value of the attribute.""")
|
|
electrodes: IntracellularRecordingsTableElectrodes = Field(..., description="""Table for storing intracellular electrode related metadata.""")
|
|
stimuli: IntracellularRecordingsTableStimuli = Field(..., description="""Table for storing intracellular stimulus related metadata.""")
|
|
responses: IntracellularRecordingsTableResponses = Field(..., description="""Table for storing intracellular response related metadata.""")
|
|
categories: Optional[str] = Field(None, description="""The names of the categories in this AlignedDynamicTable. Each category is represented by one DynamicTable stored in the parent group. This attribute should be used to specify an order of categories and the category names must match the names of the corresponding DynamicTable in the group.""")
|
|
DynamicTable: Optional[List[DynamicTable]] = Field(default_factory=list, description="""A DynamicTable representing a particular category for columns in the AlignedDynamicTable parent container. The table MUST be aligned with (i.e., have the same number of rows) as all other DynamicTables stored in the AlignedDynamicTable parent container. The name of the category is given by the name of the DynamicTable and its description by the description attribute of the DynamicTable.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class SimultaneousRecordingsTable(DynamicTable):
|
|
"""
|
|
A table for grouping different intracellular recordings from the IntracellularRecordingsTable table together that were recorded simultaneously from different electrodes.
|
|
"""
|
|
recordings: SimultaneousRecordingsTableRecordings = Field(..., description="""A reference to one or more rows in the IntracellularRecordingsTable table.""")
|
|
recordings_index: SimultaneousRecordingsTableRecordingsIndex = Field(..., description="""Index dataset for the recordings column.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class SequentialRecordingsTable(DynamicTable):
|
|
"""
|
|
A table for grouping different sequential recordings from the SimultaneousRecordingsTable table together. This is typically used to group together sequential recordings where a sequence of stimuli of the same type with varying parameters have been presented in a sequence.
|
|
"""
|
|
simultaneous_recordings: SequentialRecordingsTableSimultaneousRecordings = Field(..., description="""A reference to one or more rows in the SimultaneousRecordingsTable table.""")
|
|
simultaneous_recordings_index: SequentialRecordingsTableSimultaneousRecordingsIndex = Field(..., description="""Index dataset for the simultaneous_recordings column.""")
|
|
stimulus_type: Optional[List[str]] = Field(default_factory=list, description="""The type of stimulus used for the sequential recording.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class RepetitionsTable(DynamicTable):
|
|
"""
|
|
A table for grouping different sequential intracellular recordings together. With each SequentialRecording typically representing a particular type of stimulus, the RepetitionsTable table is typically used to group sets of stimuli applied in sequence.
|
|
"""
|
|
sequential_recordings: RepetitionsTableSequentialRecordings = Field(..., description="""A reference to one or more rows in the SequentialRecordingsTable table.""")
|
|
sequential_recordings_index: RepetitionsTableSequentialRecordingsIndex = Field(..., description="""Index dataset for the sequential_recordings column.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
class ExperimentalConditionsTable(DynamicTable):
|
|
"""
|
|
A table for grouping different intracellular recording repetitions together that belong to the same experimental condition.
|
|
"""
|
|
repetitions: ExperimentalConditionsTableRepetitions = Field(..., description="""A reference to one or more rows in the RepetitionsTable table.""")
|
|
repetitions_index: ExperimentalConditionsTableRepetitionsIndex = Field(..., description="""Index dataset for the repetitions column.""")
|
|
colnames: Optional[str] = Field(None, description="""The names of the columns in this table. This should be used to specify an order to the columns.""")
|
|
description: Optional[str] = Field(None, description="""Description of what is in this dynamic table.""")
|
|
id: DynamicTableId = Field(..., description="""Array of unique identifiers for the rows of this dynamic table.""")
|
|
VectorData: Optional[List[VectorData]] = Field(default_factory=list, description="""Vector columns, including index columns, of this dynamic table.""")
|
|
|
|
|
|
|
|
# Update forward refs
|
|
# see https://pydantic-docs.helpmanual.io/usage/postponed_annotations/
|
|
PatchClampSeries.update_forward_refs()
|
|
CurrentClampSeries.update_forward_refs()
|
|
IZeroClampSeries.update_forward_refs()
|
|
CurrentClampStimulusSeries.update_forward_refs()
|
|
VoltageClampSeries.update_forward_refs()
|
|
VoltageClampStimulusSeries.update_forward_refs()
|
|
IntracellularElectrode.update_forward_refs()
|
|
SweepTable.update_forward_refs()
|
|
IntracellularElectrodesTable.update_forward_refs()
|
|
IntracellularStimuliTable.update_forward_refs()
|
|
IntracellularResponsesTable.update_forward_refs()
|
|
IntracellularRecordingsTable.update_forward_refs()
|
|
SimultaneousRecordingsTable.update_forward_refs()
|
|
SequentialRecordingsTable.update_forward_refs()
|
|
RepetitionsTable.update_forward_refs()
|
|
ExperimentalConditionsTable.update_forward_refs()
|