Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed May 20, 2024
1 parent ba7e851 commit f39aae5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/pynwb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ def register_class(**kwargs):

def _dec(cls):
__TYPE_MAP.register_container_type(namespace, neurodata_type, cls)
cls.type_map = __TYPE_MAP
cls.namespace = namespace
return cls
if container_cls is None:
return _dec
Expand Down
1 change: 1 addition & 0 deletions src/pynwb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def data_type(self):
"""
Return the spec data type associated with this container, i.e., the neurodata_type.
"""
# we need this function here to use the correct _data_type_attr.
_type = getattr(self, self._data_type_attr)
return _type

Check warning on line 60 in src/pynwb/core.py

View check run for this annotation

Codecov / codecov/patch

src/pynwb/core.py#L59-L60

Added lines #L59 - L60 were not covered by tests

Expand Down

0 comments on commit f39aae5

Please sign in to comment.