minor tidying

This commit is contained in:
sneakers-the-rat 2024-09-30 21:47:02 -07:00
parent 8c76ce82c3
commit 2ce136709b
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 0 additions and 21 deletions

View file

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

View file

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