Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 14, 2024
1 parent 6b99a8a commit f38ca1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ def _field_config(self, arg_name, val):
msg = "Spec not found for %s." % attr
warn(msg)
return val

Check warning on line 143 in src/hdmf/container.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/container.py#L141-L143

Added lines #L141 - L143 were not covered by tests
# From the spec, get the corresponding constructor name
else:
termset_path = os.path.join(CUR_DIR, config_namespace['data_types'][object_name][attr])
# From the spec, get the corresponding constructor name
constr_name = obj_mapper.get_const_arg(spec)
termset_path = os.path.join(CUR_DIR, config_namespace['data_types'][object_name][constr_name])
termset = TermSet(term_schema_path=termset_path)
# If the val has been manually wrapped then skip checking the config for the attr
if type(val) == TermSetWrapper:
Expand Down

0 comments on commit f38ca1d

Please sign in to comment.