mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-12 17:54:29 +00:00
minor tidying
This commit is contained in:
parent
8c76ce82c3
commit
2ce136709b
2 changed files with 0 additions and 21 deletions
|
@ -171,23 +171,7 @@ def _load_node(
|
|||
del args[".specloc"]
|
||||
|
||||
model = provider.get_class(obj.attrs["namespace"], obj.attrs["neurodata_type"])
|
||||
# try:
|
||||
return model(**args)
|
||||
# except ValidationError as e1:
|
||||
# # try to restack extra fields into ``value``
|
||||
# if "value" in model.model_fields:
|
||||
# value_dict = {
|
||||
# key: val for key, val in args.items() if key not in model.model_fields
|
||||
# }
|
||||
# for k in value_dict:
|
||||
# del args[k]
|
||||
# args["value"] = value_dict
|
||||
# try:
|
||||
# return model(**args)
|
||||
# except Exception as e2:
|
||||
# raise e2 from e1
|
||||
# else:
|
||||
# raise e1
|
||||
|
||||
else:
|
||||
if "name" in args:
|
||||
|
|
|
@ -55,11 +55,6 @@ def test_roll_down_inheritance():
|
|||
"""
|
||||
Classes should receive and override the properties of their parents
|
||||
when they have neurodata_type_inc
|
||||
Args:
|
||||
nwb_core_fixture:
|
||||
|
||||
Returns:
|
||||
|
||||
"""
|
||||
parent_cls = Group(
|
||||
neurodata_type_def="Parent",
|
||||
|
|
Loading…
Reference in a new issue