From dd99ac24eb37f67fb61003510b6c042fc72b320c Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 12 Aug 2024 19:25:48 -0700 Subject: [PATCH] regenerate models --- .../pydantic/core/v2_2_0/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_2_0/core_nwb_epoch.py | 16 +++-- .../pydantic/core/v2_2_0/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_2_0/core_nwb_misc.py | 2 +- .../pydantic/core/v2_2_0/core_nwb_ophys.py | 2 +- .../core/v2_2_0/core_nwb_retinotopy.py | 2 +- .../pydantic/core/v2_2_1/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_2_1/core_nwb_epoch.py | 16 +++-- .../pydantic/core/v2_2_1/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_2_1/core_nwb_misc.py | 2 +- .../pydantic/core/v2_2_1/core_nwb_ophys.py | 2 +- .../core/v2_2_1/core_nwb_retinotopy.py | 2 +- .../pydantic/core/v2_2_2/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_2_2/core_nwb_epoch.py | 14 +++-- .../pydantic/core/v2_2_2/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_2_2/core_nwb_misc.py | 2 +- .../pydantic/core/v2_2_2/core_nwb_ophys.py | 2 +- .../pydantic/core/v2_2_4/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_2_4/core_nwb_epoch.py | 14 +++-- .../pydantic/core/v2_2_4/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_2_4/core_nwb_misc.py | 2 +- .../pydantic/core/v2_2_4/core_nwb_ophys.py | 44 ++++++++++--- .../pydantic/core/v2_2_5/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_2_5/core_nwb_epoch.py | 14 +++-- .../pydantic/core/v2_2_5/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_2_5/core_nwb_misc.py | 2 +- .../pydantic/core/v2_2_5/core_nwb_ophys.py | 44 ++++++++++--- .../pydantic/core/v2_3_0/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_3_0/core_nwb_epoch.py | 14 +++-- .../pydantic/core/v2_3_0/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_3_0/core_nwb_misc.py | 2 +- .../pydantic/core/v2_3_0/core_nwb_ophys.py | 44 ++++++++++--- .../pydantic/core/v2_4_0/core_nwb_base.py | 12 +++- .../pydantic/core/v2_4_0/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_4_0/core_nwb_epoch.py | 14 +++-- .../pydantic/core/v2_4_0/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_4_0/core_nwb_misc.py | 2 +- .../pydantic/core/v2_4_0/core_nwb_ophys.py | 44 ++++++++++--- .../pydantic/core/v2_5_0/core_nwb_base.py | 14 +++-- .../pydantic/core/v2_5_0/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_5_0/core_nwb_epoch.py | 2 +- .../pydantic/core/v2_5_0/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_5_0/core_nwb_misc.py | 2 +- .../pydantic/core/v2_5_0/core_nwb_ophys.py | 44 ++++++++++--- .../core/v2_6_0_alpha/core_nwb_base.py | 14 +++-- .../core/v2_6_0_alpha/core_nwb_ecephys.py | 20 ++++-- .../core/v2_6_0_alpha/core_nwb_epoch.py | 2 +- .../core/v2_6_0_alpha/core_nwb_icephys.py | 2 +- .../core/v2_6_0_alpha/core_nwb_misc.py | 2 +- .../core/v2_6_0_alpha/core_nwb_ophys.py | 44 ++++++++++--- .../pydantic/core/v2_7_0/core_nwb_base.py | 14 +++-- .../pydantic/core/v2_7_0/core_nwb_ecephys.py | 20 ++++-- .../pydantic/core/v2_7_0/core_nwb_epoch.py | 2 +- .../pydantic/core/v2_7_0/core_nwb_icephys.py | 2 +- .../pydantic/core/v2_7_0/core_nwb_misc.py | 2 +- .../pydantic/core/v2_7_0/core_nwb_ophys.py | 44 ++++++++++--- .../hdmf_common/v1_1_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_1_2/hdmf_common_table.py | 2 +- .../hdmf_common/v1_1_3/hdmf_common_table.py | 2 +- .../hdmf_common/v1_2_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_2_1/hdmf_common_table.py | 2 +- .../v1_3_0/hdmf_common_resources.py | 44 +++++++++---- .../hdmf_common/v1_3_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_4_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_5_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_5_1/hdmf_common_table.py | 2 +- .../hdmf_common/v1_6_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_7_0/hdmf_common_table.py | 2 +- .../hdmf_common/v1_8_0/hdmf_common_table.py | 2 +- .../v0_1_0/hdmf_experimental_resources.py | 59 ++++++++++++++---- .../v0_2_0/hdmf_experimental_resources.py | 62 ++++++++++++++----- .../v0_3_0/hdmf_experimental_resources.py | 56 ++++++++++++----- .../v0_4_0/hdmf_experimental_resources.py | 62 ++++++++++++++----- .../v0_5_0/hdmf_experimental_resources.py | 62 ++++++++++++++----- .../linkml/core/v2_2_0/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_2_0/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_2_1/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_2_1/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_2_2/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_2_2/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_2_4/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_2_4/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_2_4/core.nwb.ophys.yaml | 14 +++++ .../linkml/core/v2_2_5/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_2_5/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_2_5/core.nwb.ophys.yaml | 14 +++++ .../linkml/core/v2_3_0/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_3_0/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_3_0/core.nwb.ophys.yaml | 14 +++++ .../linkml/core/v2_4_0/core.nwb.base.yaml | 6 ++ .../linkml/core/v2_4_0/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_4_0/core.nwb.epoch.yaml | 6 ++ .../linkml/core/v2_4_0/core.nwb.ophys.yaml | 14 +++++ .../linkml/core/v2_5_0/core.nwb.base.yaml | 6 ++ .../linkml/core/v2_5_0/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_5_0/core.nwb.ophys.yaml | 14 +++++ .../core/v2_6_0_alpha/core.nwb.base.yaml | 6 ++ .../core/v2_6_0_alpha/core.nwb.ecephys.yaml | 6 ++ .../core/v2_6_0_alpha/core.nwb.ophys.yaml | 14 +++++ .../linkml/core/v2_7_0/core.nwb.base.yaml | 6 ++ .../linkml/core/v2_7_0/core.nwb.ecephys.yaml | 6 ++ .../linkml/core/v2_7_0/core.nwb.ophys.yaml | 14 +++++ .../v1_3_0/hdmf-common.resources.yaml | 18 ++++++ .../v0_1_0/hdmf-experimental.resources.yaml | 22 +++++++ .../v0_2_0/hdmf-experimental.resources.yaml | 24 +++++++ .../v0_3_0/hdmf-experimental.resources.yaml | 24 +++++++ .../v0_4_0/hdmf-experimental.resources.yaml | 26 ++++++++ .../v0_5_0/hdmf-experimental.resources.yaml | 26 ++++++++ scripts/generate_core.py | 2 +- 109 files changed, 1182 insertions(+), 273 deletions(-) diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ecephys.py index 3e3205f..d1a96d1 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -411,9 +411,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_epoch.py index d7ec41b..8d0fb5d 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_epoch.py @@ -15,9 +15,9 @@ from pydantic import ( ValidationInfo, BeforeValidator, ) -from numpydantic import NDArray, Shape from ...hdmf_common.v1_1_0.hdmf_common_table import DynamicTable, VectorIndex, VectorData from ...core.v2_2_0.core_nwb_base import TimeSeries +from numpydantic import NDArray, Shape metamodel_version = "None" version = "2.2.0" @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -181,16 +181,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_icephys.py index 8d42b4d..938bf63 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_misc.py index 3a9affd..6c16a46 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ophys.py index 8a134f9..433c454 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_ophys.py @@ -70,7 +70,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_retinotopy.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_retinotopy.py index 5cbf6b0..f63232e 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_retinotopy.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_0/core_nwb_retinotopy.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ecephys.py index d337bbe..92ea135 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -411,9 +411,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_epoch.py index cfd4e53..02fc4d9 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_epoch.py @@ -15,9 +15,9 @@ from pydantic import ( ValidationInfo, BeforeValidator, ) -from numpydantic import NDArray, Shape from ...hdmf_common.v1_1_2.hdmf_common_table import DynamicTable, VectorIndex, VectorData from ...core.v2_2_1.core_nwb_base import TimeSeries +from numpydantic import NDArray, Shape metamodel_version = "None" version = "2.2.1" @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -181,16 +181,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_icephys.py index 5be0500..46321df 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_misc.py index 9f114c6..60a591f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ophys.py index 6ad59b8..552d38b 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_ophys.py @@ -70,7 +70,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_retinotopy.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_retinotopy.py index 2c68f1f..7969ed1 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_retinotopy.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_1/core_nwb_retinotopy.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ecephys.py index fa2e7d2..d757e1a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -411,9 +411,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_epoch.py index 0464db5..083c41f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -181,16 +181,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_icephys.py index 29a500f..2b126cd 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_misc.py index 7485685..d9914b5 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ophys.py index 48ebb24..f4f9f20 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_2/core_nwb_ophys.py @@ -70,7 +70,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ecephys.py index 58080df..7bfffac 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -411,9 +411,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_epoch.py index a086155..6138ade 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -181,16 +181,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_icephys.py index 0749cca..d24c902 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_misc.py index fda23ec..6d705b1 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ophys.py index 01ecf48..9c96489 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_4/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -410,9 +410,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -437,10 +449,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ecephys.py index 4151cf7..4bd8b19 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -411,9 +411,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_epoch.py index 900bbeb..e66cf1a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -181,16 +181,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_icephys.py index b99d4ca..94cf0cf 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_misc.py index 591e521..4fe4673 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ophys.py index 3bb6356..9b0d75e 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_2_5/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -412,9 +412,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -439,10 +451,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ecephys.py index c3b57c3..29faa7b 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -419,9 +419,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_epoch.py index d82e78d..b6d6397 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -178,16 +178,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_icephys.py index 6cb3a16..a439eb5 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_icephys.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_misc.py index c7336be..14df410 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ophys.py index 1aab4fb..d6c991a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_3_0/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -418,9 +418,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -445,10 +457,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_base.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_base.py index c7e83cd..aa29c83 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_base.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_base.py @@ -90,15 +90,21 @@ class TimeSeriesReferenceVectorData(VectorData): name: str = Field( "timeseries", json_schema_extra={"linkml_meta": {"ifabsent": "string(timeseries)"}} ) - idx_start: int = Field( + idx_start: NDArray[Shape["*"], int] = Field( ..., description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: int = Field( + count: NDArray[Shape["*"], int] = Field( ..., description="""Number of data samples available in this time series, during this epoch""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + timeseries: NDArray[Shape["*"], TimeSeries] = Field( + ..., + description="""The TimeSeries that this index applies to""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: TimeSeries = Field(..., description="""The TimeSeries that this index applies to""") description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ecephys.py index 8130e81..30e8b3e 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -419,9 +419,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_epoch.py index 8828e93..1161d72 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -178,16 +178,20 @@ class TimeIntervalsTimeseries(VectorData): "linkml_meta": {"equals_string": "timeseries", "ifabsent": "string(timeseries)"} }, ) - idx_start: Optional[int] = Field( + idx_start: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: Optional[int] = Field( + count: Optional[NDArray[Shape["*"], int]] = Field( None, description="""Number of data samples available in this time series, during this epoch.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: Optional[TimeSeries] = Field( - None, description="""the TimeSeries that this index applies to.""" + timeseries: Optional[NDArray[Shape["*"], TimeSeries]] = Field( + None, + description="""the TimeSeries that this index applies to.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_icephys.py index d21047d..11318b3 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_icephys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_misc.py index b9919ef..0828ebf 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ophys.py index 47b323c..2871455 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_4_0/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -418,9 +418,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -445,10 +457,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_base.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_base.py index ab1c061..8ab4e6f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_base.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_base.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -114,15 +114,21 @@ class TimeSeriesReferenceVectorData(VectorData): name: str = Field( "timeseries", json_schema_extra={"linkml_meta": {"ifabsent": "string(timeseries)"}} ) - idx_start: int = Field( + idx_start: NDArray[Shape["*"], int] = Field( ..., description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: int = Field( + count: NDArray[Shape["*"], int] = Field( ..., description="""Number of data samples available in this time series, during this epoch""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + timeseries: NDArray[Shape["*"], TimeSeries] = Field( + ..., + description="""The TimeSeries that this index applies to""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: TimeSeries = Field(..., description="""The TimeSeries that this index applies to""") description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ecephys.py index 74c571f..f5e12e0 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -419,9 +419,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_epoch.py index 9181482..26b4717 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_icephys.py index e5ab584..e802bcf 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_icephys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_misc.py index 8a8baaf..1459133 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ophys.py index a07c17a..fbc5c57 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_5_0/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -418,9 +418,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -445,10 +457,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_base.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_base.py index 08f2b79..3151433 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_base.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_base.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -114,15 +114,21 @@ class TimeSeriesReferenceVectorData(VectorData): name: str = Field( "timeseries", json_schema_extra={"linkml_meta": {"ifabsent": "string(timeseries)"}} ) - idx_start: int = Field( + idx_start: NDArray[Shape["*"], int] = Field( ..., description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: int = Field( + count: NDArray[Shape["*"], int] = Field( ..., description="""Number of data samples available in this time series, during this epoch""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + timeseries: NDArray[Shape["*"], TimeSeries] = Field( + ..., + description="""The TimeSeries that this index applies to""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: TimeSeries = Field(..., description="""The TimeSeries that this index applies to""") description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ecephys.py index a3371dd..40d3c1a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -419,9 +419,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_epoch.py index 0ec3f6b..92e28fa 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_icephys.py index ea2c7ec..e6cb759 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_icephys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_misc.py index a8b3e9a..93d732d 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ophys.py index 22d467f..cfc2f60 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_6_0_alpha/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -517,9 +517,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -544,10 +556,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_base.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_base.py index 1e2d4a5..f84cee5 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_base.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_base.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -114,15 +114,21 @@ class TimeSeriesReferenceVectorData(VectorData): name: str = Field( "timeseries", json_schema_extra={"linkml_meta": {"ifabsent": "string(timeseries)"}} ) - idx_start: int = Field( + idx_start: NDArray[Shape["*"], int] = Field( ..., description="""Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - count: int = Field( + count: NDArray[Shape["*"], int] = Field( ..., description="""Number of data samples available in this time series, during this epoch""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + timeseries: NDArray[Shape["*"], TimeSeries] = Field( + ..., + description="""The TimeSeries that this index applies to""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - timeseries: TimeSeries = Field(..., description="""The TimeSeries that this index applies to""") description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ecephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ecephys.py index f772257..aed71ed 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ecephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ecephys.py @@ -69,7 +69,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -419,9 +419,21 @@ class ElectrodeGroupPosition(ConfiguredBaseModel): "linkml_meta": {"equals_string": "position", "ifabsent": "string(position)"} }, ) - x: Optional[float] = Field(None, description="""x coordinate""") - y: Optional[float] = Field(None, description="""y coordinate""") - z: Optional[float] = Field(None, description="""z coordinate""") + x: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""x coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""y coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""z coordinate""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) class ClusterWaveforms(NWBDataInterface): diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_epoch.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_epoch.py index 0eb0390..90c2524 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_epoch.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_epoch.py @@ -62,7 +62,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_icephys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_icephys.py index 577ddb8..93a555a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_icephys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_icephys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_misc.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_misc.py index 57697a3..edf6336 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_misc.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_misc.py @@ -68,7 +68,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ophys.py b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ophys.py index d734f11..6e4b60f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ophys.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/core/v2_7_0/core_nwb_ophys.py @@ -75,7 +75,7 @@ ModelType = TypeVar("ModelType", bound=Type[BaseModel]) def _get_name(item: ModelType | dict, info: ValidationInfo) -> Union[ModelType, dict]: """Get the name of the slot that refers to this object""" - assert isinstance(item, (BaseModel, dict)) + assert isinstance(item, (BaseModel, dict)), f"{item} was not a BaseModel or a dict!" name = info.field_name if isinstance(item, BaseModel): item.name = name @@ -517,9 +517,21 @@ class PlaneSegmentationPixelMask(VectorData): "linkml_meta": {"equals_string": "pixel_mask", "ifabsent": "string(pixel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Pixel x-coordinate.""") - y: Optional[int] = Field(None, description="""Pixel y-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the pixel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Pixel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the pixel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ @@ -544,10 +556,26 @@ class PlaneSegmentationVoxelMask(VectorData): "linkml_meta": {"equals_string": "voxel_mask", "ifabsent": "string(voxel_mask)"} }, ) - x: Optional[int] = Field(None, description="""Voxel x-coordinate.""") - y: Optional[int] = Field(None, description="""Voxel y-coordinate.""") - z: Optional[int] = Field(None, description="""Voxel z-coordinate.""") - weight: Optional[float] = Field(None, description="""Weight of the voxel.""") + x: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel x-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + y: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel y-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + z: Optional[NDArray[Shape["*"], int]] = Field( + None, + description="""Voxel z-coordinate.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + weight: Optional[NDArray[Shape["*"], float]] = Field( + None, + description="""Weight of the voxel.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) description: str = Field(..., description="""Description of what these vectors represent.""") value: Optional[ Union[ diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py index 0c982dd..a37ac18 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py @@ -414,7 +414,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py index 9a2696f..2a0c39a 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py @@ -414,7 +414,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py index 35fe280..57472fa 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py @@ -414,7 +414,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py index d12fd85..cbefb40 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py index 1bfb82c..c62bd06 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_resources.py index 00eaee4..57a1938 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_3_0.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "1.3.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -96,9 +98,10 @@ class ExternalResourcesKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key_name: str = Field( + key_name: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the 'resources' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -115,17 +118,25 @@ class ExternalResourcesResources(Data): "linkml_meta": {"equals_string": "resources", "ifabsent": "string(resources)"} }, ) - keytable_idx: int = Field(..., description="""The index to the key in the 'keys' table.""") - resource_name: str = Field( + keytable_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the key in the 'keys' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + resource_name: NDArray[Shape["*"], str] = Field( ..., description="""The name of the online resource (e.g., website, database) that has the entity.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - resource_id: str = Field( - ..., description="""The unique identifier for the resource entity at the resource.""" + resource_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The unique identifier for the resource entity at the resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - uri: str = Field( + uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the resource entity this reference applies to. This can be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -142,10 +153,15 @@ class ExternalResourcesObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - object_id: str = Field(..., description="""The UUID for the object.""") - field: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The UUID for the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + field: NDArray[Shape["*"], str] = Field( ..., description="""The field of the object. This can be an empty string if the object is a dataset and the field is the dataset values.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -162,10 +178,16 @@ class ExternalResourcesObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objecttable_idx: int = Field( - ..., description="""The index to the 'objects' table for the object that holds the key.""" + objecttable_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'objects' table for the object that holds the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keytable_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'keys' table for the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keytable_idx: int = Field(..., description="""The index to the 'keys' table for the key.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py index b19b63a..c0e6522 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py index b3d2f89..d3599bb 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py index 53e9996..946d90f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py index 641f20c..95d594e 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py index 45e4269..ea5d7b1 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py index 0ca3130..3c4c993 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py index d6e1081..60bbadf 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py @@ -415,7 +415,7 @@ class DynamicTableMixin(BaseModel): return model @model_validator(mode="after") - def cast_extra_columns(self): + def cast_extra_columns(self) -> "DynamicTableMixin": """ If extra columns are passed as just lists or arrays, cast to VectorData before we resolve targets for VectorData and VectorIndex pairs. diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_1_0/hdmf_experimental_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_1_0/hdmf_experimental_resources.py index 6b84d69..6b1a964 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_1_0/hdmf_experimental_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_1_0/hdmf_experimental_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_4_0.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "0.1.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -99,9 +101,10 @@ class ExternalResourcesKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key: str = Field( + key: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the 'resources' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -118,12 +121,25 @@ class ExternalResourcesEntities(Data): "linkml_meta": {"equals_string": "entities", "ifabsent": "string(entities)"} }, ) - keys_idx: int = Field(..., description="""The index to the key in the 'keys' table.""") - resources_idx: int = Field(..., description="""The index into the 'resources' table""") - entity_id: str = Field(..., description="""The unique identifier entity.""") - entity_uri: str = Field( + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the key in the 'keys' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + resources_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index into the 'resources' table""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + entity_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The unique identifier entity.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + entity_uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the entity this reference applies to. This can be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -140,9 +156,15 @@ class ExternalResourcesResources(Data): "linkml_meta": {"equals_string": "resources", "ifabsent": "string(resources)"} }, ) - resource: str = Field(..., description="""The name of the resource.""") - resource_uri: str = Field( - ..., description="""The URI for the resource. This can be an empty string.""" + resource: NDArray[Shape["*"], str] = Field( + ..., + description="""The name of the resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + resource_uri: NDArray[Shape["*"], str] = Field( + ..., + description="""The URI for the resource. This can be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -159,10 +181,15 @@ class ExternalResourcesObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - object_id: str = Field(..., description="""The UUID for the object.""") - field: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The UUID for the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + field: NDArray[Shape["*"], str] = Field( ..., description="""The field of the object. This can be an empty string if the object is a dataset and the field is the dataset values.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -179,10 +206,16 @@ class ExternalResourcesObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objects_idx: int = Field( - ..., description="""The index to the 'objects' table for the object that holds the key.""" + objects_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'objects' table for the object that holds the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'keys' table for the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The index to the 'keys' table for the key.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_2_0/hdmf_experimental_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_2_0/hdmf_experimental_resources.py index a9ea6d5..810f8ef 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_2_0/hdmf_experimental_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_2_0/hdmf_experimental_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_5_1.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "0.2.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -99,9 +101,10 @@ class ExternalResourcesKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key: str = Field( + key: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the 'resources' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -118,12 +121,25 @@ class ExternalResourcesEntities(Data): "linkml_meta": {"equals_string": "entities", "ifabsent": "string(entities)"} }, ) - keys_idx: int = Field(..., description="""The index to the key in the 'keys' table.""") - resources_idx: int = Field(..., description="""The index into the 'resources' table""") - entity_id: str = Field(..., description="""The unique identifier entity.""") - entity_uri: str = Field( + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the key in the 'keys' table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + resources_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index into the 'resources' table""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + entity_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The unique identifier entity.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + entity_uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the entity this reference applies to. This can be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -140,9 +156,15 @@ class ExternalResourcesResources(Data): "linkml_meta": {"equals_string": "resources", "ifabsent": "string(resources)"} }, ) - resource: str = Field(..., description="""The name of the resource.""") - resource_uri: str = Field( - ..., description="""The URI for the resource. This can be an empty string.""" + resource: NDArray[Shape["*"], str] = Field( + ..., + description="""The name of the resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + resource_uri: NDArray[Shape["*"], str] = Field( + ..., + description="""The URI for the resource. This can be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -159,14 +181,20 @@ class ExternalResourcesObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - object_id: str = Field(..., description="""The UUID for the object.""") - relative_path: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The UUID for the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + relative_path: NDArray[Shape["*"], str] = Field( ..., description="""The relative path from the container with the object_id to the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the container is a dataset which contains the value(s) that is associated with an external resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - field: str = Field( + field: NDArray[Shape["*"], str] = Field( ..., description="""The field of the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -183,10 +211,16 @@ class ExternalResourcesObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objects_idx: int = Field( - ..., description="""The index to the 'objects' table for the object that holds the key.""" + objects_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'objects' table for the object that holds the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The index to the 'keys' table for the key.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The index to the 'keys' table for the key.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_3_0/hdmf_experimental_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_3_0/hdmf_experimental_resources.py index c2fec76..4404c7f 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_3_0/hdmf_experimental_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_3_0/hdmf_experimental_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_6_0.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "0.3.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -99,9 +101,10 @@ class ExternalResourcesKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key: str = Field( + key: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the `resources` table, e.g., \"human\".""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -116,9 +119,10 @@ class ExternalResourcesFiles(Data): "files", json_schema_extra={"linkml_meta": {"equals_string": "files", "ifabsent": "string(files)"}}, ) - file_object_id: str = Field( + file_object_id: NDArray[Shape["*"], str] = Field( ..., description="""The object id (UUID) of a file that contains objects that refers to external resources.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -135,14 +139,20 @@ class ExternalResourcesEntities(Data): "linkml_meta": {"equals_string": "entities", "ifabsent": "string(entities)"} }, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") - entity_id: str = Field( + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + entity_id: NDArray[Shape["*"], str] = Field( ..., description="""The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - entity_uri: str = Field( + entity_uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -159,18 +169,30 @@ class ExternalResourcesObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - files_idx: int = Field( - ..., description="""The row index to the file in the `files` table containing the object.""" + files_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the file in the `files` table containing the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - object_id: str = Field(..., description="""The object id (UUID) of the object.""") - object_type: str = Field(..., description="""The data type of the object.""") - relative_path: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The object id (UUID) of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + object_type: NDArray[Shape["*"], str] = Field( + ..., + description="""The data type of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + relative_path: NDArray[Shape["*"], str] = Field( ..., description="""The relative path from the data object with the `object_id` to the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - field: str = Field( + field: NDArray[Shape["*"], str] = Field( ..., description="""The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -187,10 +209,16 @@ class ExternalResourcesObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objects_idx: int = Field( - ..., description="""The row index to the object in the `objects` table that holds the key""" + objects_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the object in the `objects` table that holds the key""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_4_0/hdmf_experimental_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_4_0/hdmf_experimental_resources.py index f0bb510..7eef961 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_4_0/hdmf_experimental_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_4_0/hdmf_experimental_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_7_0.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "0.4.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -102,9 +104,10 @@ class ExternalResourcesKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key: str = Field( + key: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the `resources` table, e.g., \"human\".""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -119,9 +122,10 @@ class ExternalResourcesFiles(Data): "files", json_schema_extra={"linkml_meta": {"equals_string": "files", "ifabsent": "string(files)"}}, ) - file_object_id: str = Field( + file_object_id: NDArray[Shape["*"], str] = Field( ..., description="""The object id (UUID) of a file that contains objects that refers to external resources.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -138,13 +142,15 @@ class ExternalResourcesEntities(Data): "linkml_meta": {"equals_string": "entities", "ifabsent": "string(entities)"} }, ) - entity_id: str = Field( + entity_id: NDArray[Shape["*"], str] = Field( ..., description="""The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - entity_uri: str = Field( + entity_uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -161,18 +167,30 @@ class ExternalResourcesObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - files_idx: int = Field( - ..., description="""The row index to the file in the `files` table containing the object.""" + files_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the file in the `files` table containing the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - object_id: str = Field(..., description="""The object id (UUID) of the object.""") - object_type: str = Field(..., description="""The data type of the object.""") - relative_path: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The object id (UUID) of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + object_type: NDArray[Shape["*"], str] = Field( + ..., + description="""The data type of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + relative_path: NDArray[Shape["*"], str] = Field( ..., description="""The relative path from the data object with the `object_id` to the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - field: str = Field( + field: NDArray[Shape["*"], str] = Field( ..., description="""The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -189,10 +207,16 @@ class ExternalResourcesObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objects_idx: int = Field( - ..., description="""The row index to the object in the `objects` table that holds the key""" + objects_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the object in the `objects` table that holds the key""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") class ExternalResourcesEntityKeys(Data): @@ -208,10 +232,16 @@ class ExternalResourcesEntityKeys(Data): "linkml_meta": {"equals_string": "entity_keys", "ifabsent": "string(entity_keys)"} }, ) - entities_idx: int = Field( - ..., description="""The row index to the entity in the `entities` table.""" + entities_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the entity in the `entities` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_5_0/hdmf_experimental_resources.py b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_5_0/hdmf_experimental_resources.py index 8c33e35..0adfcc3 100644 --- a/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_5_0/hdmf_experimental_resources.py +++ b/nwb_linkml/src/nwb_linkml/models/pydantic/hdmf_experimental/v0_5_0/hdmf_experimental_resources.py @@ -8,6 +8,7 @@ from typing import Any, ClassVar, List, Literal, Dict, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel, field_validator import numpy as np from ...hdmf_common.v1_8_0.hdmf_common_base import Container, Data +from numpydantic import NDArray, Shape metamodel_version = "None" version = "0.5.0" @@ -45,6 +46,7 @@ class LinkMLMeta(RootModel): return key in self.root +NUMPYDANTIC_VERSION = "1.2.1" linkml_meta = LinkMLMeta( { "annotations": { @@ -102,9 +104,10 @@ class HERDKeys(Data): "keys", json_schema_extra={"linkml_meta": {"equals_string": "keys", "ifabsent": "string(keys)"}}, ) - key: str = Field( + key: NDArray[Shape["*"], str] = Field( ..., description="""The user term that maps to one or more resources in the `resources` table, e.g., \"human\".""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -119,9 +122,10 @@ class HERDFiles(Data): "files", json_schema_extra={"linkml_meta": {"equals_string": "files", "ifabsent": "string(files)"}}, ) - file_object_id: str = Field( + file_object_id: NDArray[Shape["*"], str] = Field( ..., description="""The object id (UUID) of a file that contains objects that refers to external resources.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -138,13 +142,15 @@ class HERDEntities(Data): "linkml_meta": {"equals_string": "entities", "ifabsent": "string(entities)"} }, ) - entity_id: str = Field( + entity_id: NDArray[Shape["*"], str] = Field( ..., description="""The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - entity_uri: str = Field( + entity_uri: NDArray[Shape["*"], str] = Field( ..., description="""The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -161,18 +167,30 @@ class HERDObjects(Data): "linkml_meta": {"equals_string": "objects", "ifabsent": "string(objects)"} }, ) - files_idx: int = Field( - ..., description="""The row index to the file in the `files` table containing the object.""" + files_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the file in the `files` table containing the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - object_id: str = Field(..., description="""The object id (UUID) of the object.""") - object_type: str = Field(..., description="""The data type of the object.""") - relative_path: str = Field( + object_id: NDArray[Shape["*"], str] = Field( + ..., + description="""The object id (UUID) of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + object_type: NDArray[Shape["*"], str] = Field( + ..., + description="""The data type of the object.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + relative_path: NDArray[Shape["*"], str] = Field( ..., description="""The relative path from the data object with the `object_id` to the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - field: str = Field( + field: NDArray[Shape["*"], str] = Field( ..., description="""The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) @@ -189,10 +207,16 @@ class HERDObjectKeys(Data): "linkml_meta": {"equals_string": "object_keys", "ifabsent": "string(object_keys)"} }, ) - objects_idx: int = Field( - ..., description="""The row index to the object in the `objects` table that holds the key""" + objects_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the object in the `objects` table that holds the key""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") class HERDEntityKeys(Data): @@ -208,10 +232,16 @@ class HERDEntityKeys(Data): "linkml_meta": {"equals_string": "entity_keys", "ifabsent": "string(entity_keys)"} }, ) - entities_idx: int = Field( - ..., description="""The row index to the entity in the `entities` table.""" + entities_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the entity in the `entities` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, + ) + keys_idx: NDArray[Shape["*"], int] = Field( + ..., + description="""The row index to the key in the `keys` table.""", + json_schema_extra={"linkml_meta": {"array": {"exact_number_dimensions": 1}}}, ) - keys_idx: int = Field(..., description="""The row index to the key in the `keys` table.""") # Model rebuild diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.ecephys.yaml index 7d61f52..52f4c5a 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.ecephys.yaml @@ -334,18 +334,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.epoch.yaml index 924f069..2e5ca8e 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_0/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.ecephys.yaml index d5aaa6e..2244ea6 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.ecephys.yaml @@ -334,18 +334,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.epoch.yaml index 1f086dc..e7e66c5 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_1/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.ecephys.yaml index 6641150..70f1c6c 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.ecephys.yaml @@ -334,18 +334,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.epoch.yaml index 18c60a6..6121bb5 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_2/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ecephys.yaml index 8acdc93..166af8a 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ecephys.yaml @@ -334,18 +334,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.epoch.yaml index 3365825..68a7004 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ophys.yaml index 73f7c6f..4d7568e 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_4/core.nwb.ophys.yaml @@ -258,18 +258,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -289,24 +295,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ecephys.yaml index 0e11ce2..d7e2d98 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ecephys.yaml @@ -334,18 +334,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.epoch.yaml index 9a3bedf..2b4fbde 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ophys.yaml index 6613637..2424cb5 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_2_5/core.nwb.ophys.yaml @@ -258,18 +258,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -289,24 +295,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ecephys.yaml index 12ad322..2863bba 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ecephys.yaml @@ -345,18 +345,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.epoch.yaml index 6616781..ce14120 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ophys.yaml index 9e86441..b208d50 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_3_0/core.nwb.ophys.yaml @@ -258,18 +258,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -289,24 +295,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.base.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.base.yaml index 8ba1ca7..1d817de 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.base.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.base.yaml @@ -41,6 +41,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false @@ -48,12 +50,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false timeseries: name: timeseries description: The TimeSeries that this index applies to + array: + exact_number_dimensions: 1 range: TimeSeries required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ecephys.yaml index e572bd1..dd93758 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ecephys.yaml @@ -345,18 +345,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.epoch.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.epoch.yaml index 512513e..c3fb2cb 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.epoch.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.epoch.yaml @@ -100,6 +100,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false @@ -107,12 +109,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch. + array: + exact_number_dimensions: 1 range: int32 required: false multivalued: false timeseries: name: timeseries description: the TimeSeries that this index applies to. + array: + exact_number_dimensions: 1 range: TimeSeries required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ophys.yaml index f59ef09..4317684 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_4_0/core.nwb.ophys.yaml @@ -258,18 +258,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -289,24 +295,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.base.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.base.yaml index 1a9d3a8..e6679dc 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.base.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.base.yaml @@ -41,6 +41,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false @@ -48,12 +50,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false timeseries: name: timeseries description: The TimeSeries that this index applies to + array: + exact_number_dimensions: 1 range: TimeSeries required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ecephys.yaml index 1562caf..2efc5c7 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ecephys.yaml @@ -345,18 +345,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ophys.yaml index 2c94d34..e0c051a 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_5_0/core.nwb.ophys.yaml @@ -258,18 +258,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -289,24 +295,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.base.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.base.yaml index ad3eeb6..e45d2cb 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.base.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.base.yaml @@ -41,6 +41,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false @@ -48,12 +50,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false timeseries: name: timeseries description: The TimeSeries that this index applies to + array: + exact_number_dimensions: 1 range: TimeSeries required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ecephys.yaml index 3fab077..5dba82c 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ecephys.yaml @@ -345,18 +345,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ophys.yaml index 00607b0..80a1f6c 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_6_0_alpha/core.nwb.ophys.yaml @@ -311,18 +311,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -342,24 +348,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.base.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.base.yaml index ec53dc1..21a57b1 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.base.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.base.yaml @@ -41,6 +41,8 @@ classes: description: Start index into the TimeSeries 'data' and 'timestamp' datasets of the referenced TimeSeries. The first dimension of those arrays is always time. + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false @@ -48,12 +50,16 @@ classes: name: count description: Number of data samples available in this time series, during this epoch + array: + exact_number_dimensions: 1 range: int32 required: true multivalued: false timeseries: name: timeseries description: The TimeSeries that this index applies to + array: + exact_number_dimensions: 1 range: TimeSeries required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ecephys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ecephys.yaml index 8485a7d..54d0f4f 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ecephys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ecephys.yaml @@ -345,18 +345,24 @@ classes: x: name: x description: x coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false y: name: y description: y coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false z: name: z description: z coordinate + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ophys.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ophys.yaml index 478cc92..053698d 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ophys.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/core/v2_7_0/core.nwb.ophys.yaml @@ -311,18 +311,24 @@ classes: x: name: x description: Pixel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Pixel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the pixel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false @@ -342,24 +348,32 @@ classes: x: name: x description: Voxel x-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false y: name: y description: Voxel y-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false z: name: z description: Voxel z-coordinate. + array: + exact_number_dimensions: 1 range: uint32 required: false multivalued: false weight: name: weight description: Weight of the voxel. + array: + exact_number_dimensions: 1 range: float32 required: false multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_common/v1_3_0/hdmf-common.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_common/v1_3_0/hdmf-common.resources.yaml index 918a6a5..3bbb768 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_common/v1_3_0/hdmf-common.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_common/v1_3_0/hdmf-common.resources.yaml @@ -67,6 +67,8 @@ classes: name: key_name description: The user term that maps to one or more resources in the 'resources' table. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -84,6 +86,8 @@ classes: keytable_idx: name: keytable_idx description: The index to the key in the 'keys' table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false @@ -91,12 +95,16 @@ classes: name: resource_name description: The name of the online resource (e.g., website, database) that has the entity. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false resource_id: name: resource_id description: The unique identifier for the resource entity at the resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -104,6 +112,8 @@ classes: name: uri description: The URI for the resource entity this reference applies to. This can be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -122,6 +132,8 @@ classes: object_id: name: object_id description: The UUID for the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -129,6 +141,8 @@ classes: name: field description: The field of the object. This can be an empty string if the object is a dataset and the field is the dataset values. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -147,12 +161,16 @@ classes: name: objecttable_idx description: The index to the 'objects' table for the object that holds the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keytable_idx: name: keytable_idx description: The index to the 'keys' table for the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_1_0/hdmf-experimental.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_1_0/hdmf-experimental.resources.yaml index 89ffc2c..05dc855 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_1_0/hdmf-experimental.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_1_0/hdmf-experimental.resources.yaml @@ -73,6 +73,8 @@ classes: name: key description: The user term that maps to one or more resources in the 'resources' table. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -90,18 +92,24 @@ classes: keys_idx: name: keys_idx description: The index to the key in the 'keys' table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false resources_idx: name: resources_idx description: The index into the 'resources' table + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false entity_id: name: entity_id description: The unique identifier entity. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -109,6 +117,8 @@ classes: name: entity_uri description: The URI for the entity this reference applies to. This can be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -126,12 +136,16 @@ classes: resource: name: resource description: The name of the resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false resource_uri: name: resource_uri description: The URI for the resource. This can be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -150,6 +164,8 @@ classes: object_id: name: object_id description: The UUID for the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -157,6 +173,8 @@ classes: name: field description: The field of the object. This can be an empty string if the object is a dataset and the field is the dataset values. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -175,12 +193,16 @@ classes: name: objects_idx description: The index to the 'objects' table for the object that holds the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The index to the 'keys' table for the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_2_0/hdmf-experimental.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_2_0/hdmf-experimental.resources.yaml index c2fc8d8..a1b6ec0 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_2_0/hdmf-experimental.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_2_0/hdmf-experimental.resources.yaml @@ -73,6 +73,8 @@ classes: name: key description: The user term that maps to one or more resources in the 'resources' table. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -90,18 +92,24 @@ classes: keys_idx: name: keys_idx description: The index to the key in the 'keys' table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false resources_idx: name: resources_idx description: The index into the 'resources' table + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false entity_id: name: entity_id description: The unique identifier entity. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -109,6 +117,8 @@ classes: name: entity_uri description: The URI for the entity this reference applies to. This can be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -126,12 +136,16 @@ classes: resource: name: resource description: The name of the resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false resource_uri: name: resource_uri description: The URI for the resource. This can be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -150,6 +164,8 @@ classes: object_id: name: object_id description: The UUID for the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -159,6 +175,8 @@ classes: dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the container is a dataset which contains the value(s) that is associated with an external resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -167,6 +185,8 @@ classes: description: The field of the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -185,12 +205,16 @@ classes: name: objects_idx description: The index to the 'objects' table for the object that holds the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The index to the 'keys' table for the key. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_3_0/hdmf-experimental.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_3_0/hdmf-experimental.resources.yaml index 350ef24..ca25659 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_3_0/hdmf-experimental.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_3_0/hdmf-experimental.resources.yaml @@ -73,6 +73,8 @@ classes: name: key description: The user term that maps to one or more resources in the `resources` table, e.g., "human". + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -91,6 +93,8 @@ classes: name: file_object_id description: The object id (UUID) of a file that contains objects that refers to external resources. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -108,6 +112,8 @@ classes: keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false @@ -115,6 +121,8 @@ classes: name: entity_id description: The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -122,6 +130,8 @@ classes: name: entity_uri description: The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606 + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -141,18 +151,24 @@ classes: name: files_idx description: The row index to the file in the `files` table containing the object. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false object_id: name: object_id description: The object id (UUID) of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false object_type: name: object_type description: The data type of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -162,6 +178,8 @@ classes: the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -170,6 +188,8 @@ classes: description: The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -188,12 +208,16 @@ classes: name: objects_idx description: The row index to the object in the `objects` table that holds the key + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_4_0/hdmf-experimental.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_4_0/hdmf-experimental.resources.yaml index 8768e73..e2acf65 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_4_0/hdmf-experimental.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_4_0/hdmf-experimental.resources.yaml @@ -79,6 +79,8 @@ classes: name: key description: The user term that maps to one or more resources in the `resources` table, e.g., "human". + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -97,6 +99,8 @@ classes: name: file_object_id description: The object id (UUID) of a file that contains objects that refers to external resources. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -115,6 +119,8 @@ classes: name: entity_id description: The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -122,6 +128,8 @@ classes: name: entity_uri description: The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606 + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -141,18 +149,24 @@ classes: name: files_idx description: The row index to the file in the `files` table containing the object. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false object_id: name: object_id description: The object id (UUID) of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false object_type: name: object_type description: The data type of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -162,6 +176,8 @@ classes: the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -170,6 +186,8 @@ classes: description: The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -188,12 +206,16 @@ classes: name: objects_idx description: The row index to the object in the `objects` table that holds the key + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false @@ -211,12 +233,16 @@ classes: entities_idx: name: entities_idx description: The row index to the entity in the `entities` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_5_0/hdmf-experimental.resources.yaml b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_5_0/hdmf-experimental.resources.yaml index d4514ed..7478fe1 100644 --- a/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_5_0/hdmf-experimental.resources.yaml +++ b/nwb_linkml/src/nwb_linkml/schema/linkml/hdmf_experimental/v0_5_0/hdmf-experimental.resources.yaml @@ -78,6 +78,8 @@ classes: name: key description: The user term that maps to one or more resources in the `resources` table, e.g., "human". + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -96,6 +98,8 @@ classes: name: file_object_id description: The object id (UUID) of a file that contains objects that refers to external resources. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -114,6 +118,8 @@ classes: name: entity_id description: The compact uniform resource identifier (CURIE) of the entity, in the form [prefix]:[unique local identifier], e.g., 'NCBI_TAXON:9606'. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -121,6 +127,8 @@ classes: name: entity_uri description: The URI for the entity this reference applies to. This can be an empty string. e.g., https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=info&id=9606 + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -140,18 +148,24 @@ classes: name: files_idx description: The row index to the file in the `files` table containing the object. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false object_id: name: object_id description: The object id (UUID) of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false object_type: name: object_type description: The data type of the object. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -161,6 +175,8 @@ classes: the dataset or attribute with the value(s) that is associated with an external resource. This can be an empty string if the object is a dataset that contains the value(s) that is associated with an external resource. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -169,6 +185,8 @@ classes: description: The field within the compound data type using an external resource. This is used only if the dataset or attribute is a compound data type; otherwise this should be an empty string. + array: + exact_number_dimensions: 1 range: text required: true multivalued: false @@ -187,12 +205,16 @@ classes: name: objects_idx description: The row index to the object in the `objects` table that holds the key + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false @@ -210,12 +232,16 @@ classes: entities_idx: name: entities_idx description: The row index to the entity in the `entities` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false keys_idx: name: keys_idx description: The row index to the key in the `keys` table. + array: + exact_number_dimensions: 1 range: uint required: true multivalued: false diff --git a/scripts/generate_core.py b/scripts/generate_core.py index af33c37..ea037f9 100644 --- a/scripts/generate_core.py +++ b/scripts/generate_core.py @@ -174,7 +174,7 @@ def generate_versions( # import the most recent version of the schemaz we built latest_version = sorted( - (pydantic_path / "pydantic" / "core").glob('v*'), key=os.path.getmtime + (pydantic_path / "pydantic" / "core").glob("v*"), key=os.path.getmtime )[-1] # make inits to use the schema! we don't usually do this in the