From ee35e5921b2667537e22903283382247f8d7a348 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 2 Sep 2024 18:50:48 -0700 Subject: [PATCH] exclude metadata vars from column and category checks --- nwb_linkml/src/nwb_linkml/includes/hdmf.py | 4 ++++ .../models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py | 4 ++++ .../models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py | 4 ++++ 13 files changed, 52 insertions(+) diff --git a/nwb_linkml/src/nwb_linkml/includes/hdmf.py b/nwb_linkml/src/nwb_linkml/includes/hdmf.py index 8bc9107..32efac4 100644 --- a/nwb_linkml/src/nwb_linkml/includes/hdmf.py +++ b/nwb_linkml/src/nwb_linkml/includes/hdmf.py @@ -55,6 +55,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -575,6 +577,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py index 418db3a..66f21bc 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_0/hdmf_common_table.py @@ -300,6 +300,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -621,6 +623,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py index b14e78b..5819917 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_2/hdmf_common_table.py @@ -300,6 +300,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -621,6 +623,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py index 9b19ed4..6637383 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_1_3/hdmf_common_table.py @@ -300,6 +300,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -621,6 +623,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py index adfbb51..8c14df1 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py index f4b94c4..b6603e5 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_2_1/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py index 8c1c9dc..733b65a 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_3_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py index f743efc..8800d3d 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_4_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py index ebf5d92..d23050d 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py index d4de085..acfc173 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_5_1/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py index 0fe3368..0f76e29 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_6_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py index d94b2dd..b7604f4 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_7_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table" diff --git a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py index 9440453..3cead40 100644 --- a/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py +++ b/nwb_models/src/nwb_models/models/pydantic/hdmf_common/v1_8_0/hdmf_common_table.py @@ -302,6 +302,8 @@ class DynamicTableMixin(BaseModel): "name", "colnames", "description", + "hdf5_path", + "object_id", ) # overridden by subclass but implemented here for testing and typechecking purposes :) @@ -623,6 +625,8 @@ class AlignedDynamicTableMixin(BaseModel): "categories", "colnames", "description", + "hdf5_path", + "object_id", ) name: str = "aligned_table"