mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
update models
This commit is contained in:
parent
19e49cf68d
commit
f08216a43f
41 changed files with 50 additions and 46 deletions
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import sys
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ...core.v2_2_0.core_nwb_image import GrayscaleImage
|
from ...core.v2_2_0.core_nwb_image import GrayscaleImage
|
||||||
from ...core.v2_2_0.core_nwb_base import NWBData, NWBDataInterface
|
from ...core.v2_2_0.core_nwb_base import NWBData, NWBDataInterface
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from typing import Any, ClassVar, List, Literal, Dict, Optional, Union, Annotated, Type, TypeVar
|
from typing import Any, ClassVar, List, Literal, Dict, Optional, Union, Annotated, Type, TypeVar
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
BaseModel,
|
BaseModel,
|
||||||
|
@ -18,6 +17,7 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.0"
|
version = "2.2.0"
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import sys
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ...core.v2_2_1.core_nwb_image import GrayscaleImage
|
from ...core.v2_2_1.core_nwb_image import GrayscaleImage
|
||||||
from ...core.v2_2_1.core_nwb_base import NWBData, NWBDataInterface
|
from ...core.v2_2_1.core_nwb_base import NWBData, NWBDataInterface
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from typing import Any, ClassVar, List, Literal, Dict, Optional, Union, Annotated, Type, TypeVar
|
from typing import Any, ClassVar, List, Literal, Dict, Optional, Union, Annotated, Type, TypeVar
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
BaseModel,
|
BaseModel,
|
||||||
|
@ -18,6 +17,7 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.1"
|
version = "2.2.1"
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -15,9 +15,9 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
||||||
from ...core.v2_2_2.core_nwb_base import TimeSeries
|
from ...core.v2_2_2.core_nwb_base import TimeSeries
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.2"
|
version = "2.2.2"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from ...core.v2_2_2.core_nwb_ecephys import ElectrodeGroup
|
from ...core.v2_2_2.core_nwb_ecephys import ElectrodeGroup
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.2"
|
version = "2.2.2"
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -15,9 +15,9 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
||||||
from ...core.v2_2_4.core_nwb_base import TimeSeries
|
from ...core.v2_2_4.core_nwb_base import TimeSeries
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.4"
|
version = "2.2.4"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from ...core.v2_2_4.core_nwb_ecephys import ElectrodeGroup
|
from ...core.v2_2_4.core_nwb_ecephys import ElectrodeGroup
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.4"
|
version = "2.2.4"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_2_4.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_2_4.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_2_4.core_nwb_base import (
|
from ...core.v2_2_4.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -15,9 +15,9 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
from ...hdmf_common.v1_1_3.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
||||||
from ...core.v2_2_5.core_nwb_base import TimeSeries
|
from ...core.v2_2_5.core_nwb_base import TimeSeries
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.5"
|
version = "2.2.5"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from ...core.v2_2_5.core_nwb_ecephys import ElectrodeGroup
|
from ...core.v2_2_5.core_nwb_ecephys import ElectrodeGroup
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.2.5"
|
version = "2.2.5"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
from ...hdmf_common.v1_1_3.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_2_5.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_2_5.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_2_5.core_nwb_base import (
|
from ...core.v2_2_5.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -15,9 +15,9 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
from ...hdmf_common.v1_5_0.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
||||||
from ...core.v2_3_0.core_nwb_base import TimeSeries
|
from ...core.v2_3_0.core_nwb_base import TimeSeries
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.3.0"
|
version = "2.3.0"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.3.0"
|
version = "2.3.0"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_3_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_3_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_3_0.core_nwb_base import (
|
from ...core.v2_3_0.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -15,9 +15,9 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
from ...hdmf_common.v1_5_0.hdmf_common_table import DynamicTable, VectorIndex, VectorData
|
||||||
from ...core.v2_4_0.core_nwb_base import TimeSeries
|
from ...core.v2_4_0.core_nwb_base import TimeSeries
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.4.0"
|
version = "2.4.0"
|
||||||
|
|
|
@ -22,7 +22,6 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
|
@ -30,6 +29,7 @@ from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
AlignedDynamicTable,
|
AlignedDynamicTable,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.4.0"
|
version = "2.4.0"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.4.0"
|
version = "2.4.0"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_4_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_4_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_4_0.core_nwb_base import (
|
from ...core.v2_4_0.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -22,7 +22,6 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
|
@ -30,6 +29,7 @@ from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
AlignedDynamicTable,
|
AlignedDynamicTable,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_5_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_5_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_5_0.core_nwb_base import (
|
from ...core.v2_5_0.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -22,7 +22,6 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
|
@ -30,6 +29,7 @@ from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
AlignedDynamicTable,
|
AlignedDynamicTable,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.6.0-alpha"
|
version = "2.6.0-alpha"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.6.0-alpha"
|
version = "2.6.0-alpha"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
from ...hdmf_common.v1_5_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_6_0_alpha.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_6_0_alpha.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_6_0_alpha.core_nwb_base import (
|
from ...core.v2_6_0_alpha.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -61,6 +61,8 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
|
|
||||||
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
ModelType = TypeVar("ModelType", bound=Type[BaseModel])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +78,6 @@ def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType,
|
||||||
|
|
||||||
|
|
||||||
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
Named = Annotated[ModelType, BeforeValidator(_get_name)]
|
||||||
|
|
||||||
NUMPYDANTIC_VERSION = "1.2.1"
|
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -22,7 +22,6 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
|
@ -30,6 +29,7 @@ from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
||||||
AlignedDynamicTable,
|
AlignedDynamicTable,
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.7.0"
|
version = "2.7.0"
|
||||||
|
|
|
@ -17,13 +17,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorData,
|
VectorData,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "2.7.0"
|
version = "2.7.0"
|
||||||
|
|
|
@ -15,13 +15,13 @@ from pydantic import (
|
||||||
ValidationInfo,
|
ValidationInfo,
|
||||||
BeforeValidator,
|
BeforeValidator,
|
||||||
)
|
)
|
||||||
from numpydantic import NDArray, Shape
|
|
||||||
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
from ...hdmf_common.v1_8_0.hdmf_common_table import (
|
||||||
DynamicTableRegion,
|
DynamicTableRegion,
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
VectorIndex,
|
VectorIndex,
|
||||||
VectorData,
|
VectorData,
|
||||||
)
|
)
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
from ...core.v2_7_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
from ...core.v2_7_0.core_nwb_image import ImageSeries, ImageSeriesExternalFile
|
||||||
from ...core.v2_7_0.core_nwb_base import (
|
from ...core.v2_7_0.core_nwb_base import (
|
||||||
TimeSeriesStartingTime,
|
TimeSeriesStartingTime,
|
||||||
|
|
|
@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union
|
||||||
from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator
|
from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ...hdmf_common.v1_5_0.hdmf_common_table import VectorData
|
from ...hdmf_common.v1_5_0.hdmf_common_table import VectorData
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -45,6 +46,7 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
|
@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union
|
||||||
from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator
|
from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ...hdmf_common.v1_8_0.hdmf_common_table import VectorData
|
from ...hdmf_common.v1_8_0.hdmf_common_table import VectorData
|
||||||
|
from numpydantic import NDArray, Shape
|
||||||
|
|
||||||
metamodel_version = "None"
|
metamodel_version = "None"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
@ -45,6 +46,7 @@ class LinkMLMeta(RootModel):
|
||||||
return key in self.root
|
return key in self.root
|
||||||
|
|
||||||
|
|
||||||
|
NUMPYDANTIC_VERSION = "1.2.1"
|
||||||
linkml_meta = LinkMLMeta(
|
linkml_meta = LinkMLMeta(
|
||||||
{
|
{
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|
Loading…
Reference in a new issue