mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
156 lines
No EOL
3.1 KiB
Python
156 lines
No EOL
3.1 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_retinotopy import (
|
|
ImagingRetinotopy
|
|
)
|
|
|
|
from .core_nwb_base import (
|
|
NWBData,
|
|
TimeSeriesReferenceVectorData,
|
|
Image,
|
|
ImageReferences,
|
|
NWBContainer,
|
|
NWBDataInterface,
|
|
TimeSeries,
|
|
ProcessingModule,
|
|
Images
|
|
)
|
|
|
|
from .hdmf_common_table import (
|
|
VectorData,
|
|
VectorIndex,
|
|
ElementIdentifiers,
|
|
DynamicTableRegion,
|
|
DynamicTable,
|
|
AlignedDynamicTable
|
|
)
|
|
|
|
from .hdmf_common_base import (
|
|
Data,
|
|
Container,
|
|
SimpleMultiContainer
|
|
)
|
|
|
|
from .core_nwb_ophys import (
|
|
OnePhotonSeries,
|
|
TwoPhotonSeries,
|
|
RoiResponseSeries,
|
|
DfOverF,
|
|
Fluorescence,
|
|
ImageSegmentation,
|
|
PlaneSegmentation,
|
|
ImagingPlane,
|
|
OpticalChannel,
|
|
MotionCorrection,
|
|
CorrectedImageStack
|
|
)
|
|
|
|
from .core_nwb_device import (
|
|
Device
|
|
)
|
|
|
|
from .core_nwb_image import (
|
|
GrayscaleImage,
|
|
RGBImage,
|
|
RGBAImage,
|
|
ImageSeries,
|
|
ImageMaskSeries,
|
|
OpticalSeries,
|
|
IndexSeries
|
|
)
|
|
|
|
from .core_nwb_ogen import (
|
|
OptogeneticSeries,
|
|
OptogeneticStimulusSite
|
|
)
|
|
|
|
from .core_nwb_icephys import (
|
|
PatchClampSeries,
|
|
CurrentClampSeries,
|
|
IZeroClampSeries,
|
|
CurrentClampStimulusSeries,
|
|
VoltageClampSeries,
|
|
VoltageClampStimulusSeries,
|
|
IntracellularElectrode,
|
|
SweepTable,
|
|
IntracellularElectrodesTable,
|
|
IntracellularStimuliTable,
|
|
IntracellularResponsesTable,
|
|
IntracellularRecordingsTable,
|
|
SimultaneousRecordingsTable,
|
|
SequentialRecordingsTable,
|
|
RepetitionsTable,
|
|
ExperimentalConditionsTable
|
|
)
|
|
|
|
from .core_nwb_ecephys import (
|
|
ElectricalSeries,
|
|
SpikeEventSeries,
|
|
FeatureExtraction,
|
|
EventDetection,
|
|
EventWaveform,
|
|
FilteredEphys,
|
|
LFP,
|
|
ElectrodeGroup,
|
|
ClusterWaveforms,
|
|
Clustering
|
|
)
|
|
|
|
from .core_nwb_behavior import (
|
|
SpatialSeries,
|
|
BehavioralEpochs,
|
|
BehavioralEvents,
|
|
BehavioralTimeSeries,
|
|
PupilTracking,
|
|
EyeTracking,
|
|
CompassDirection,
|
|
Position
|
|
)
|
|
|
|
from .core_nwb_misc import (
|
|
AbstractFeatureSeries,
|
|
AnnotationSeries,
|
|
IntervalSeries,
|
|
DecompositionSeries,
|
|
Units
|
|
)
|
|
|
|
from .core_nwb_file import (
|
|
ScratchData,
|
|
NWBFile,
|
|
LabMetaData,
|
|
Subject
|
|
)
|
|
|
|
from .core_nwb_epoch import (
|
|
TimeIntervals
|
|
)
|
|
|
|
|
|
metamodel_version = "None"
|
|
version = "2.6.0-alpha"
|
|
|
|
class ConfiguredBaseModel(BaseModel,
|
|
validate_assignment = True,
|
|
validate_default = True,
|
|
extra = 'forbid',
|
|
arbitrary_types_allowed = True,
|
|
use_enum_values = True):
|
|
pass
|
|
|
|
|
|
|
|
# Model rebuild
|
|
# see https://pydantic-docs.helpmanual.io/usage/models/#rebuilding-a-model
|
|
|