update models

This commit is contained in:
sneakers-the-rat 2024-07-29 18:19:34 -07:00
parent 19e49cf68d
commit f08216a43f
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
41 changed files with 50 additions and 46 deletions

View file

@ -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": {

View file

@ -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"

View file

@ -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": {

View file

@ -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"

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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"

View file

@ -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"

View file

@ -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,

View file

@ -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": {

View file

@ -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": {