Skip to content

Commit

Permalink
cov
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Nov 14, 2024
1 parent d1ca4e1 commit ee32996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/hdmf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import query
from .backends.hdf5.h5_utils import H5Dataset
from .container import Container, Data, DataRegion, HERDManager
from .container import Container, Data, HERDManager
from .utils import docval, getargs
from .term_set import TermSet, TermSetWrapper, TypeConfigurator

Expand Down
4 changes: 2 additions & 2 deletions src/hdmf/build/classgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

from ..container import Container, Data, DataRegion, MultiContainerInterface
from ..container import Container, Data, MultiContainerInterface
from ..spec import AttributeSpec, LinkSpec, RefSpec, GroupSpec
from ..spec.spec import BaseStorageSpec, ZERO_OR_MANY, ONE_OR_MANY
from ..utils import docval, getargs, ExtenderMeta, get_docval, popargs, AllowPositional
Expand Down Expand Up @@ -195,7 +195,7 @@ def _ischild(cls, dtype):
if isinstance(dtype, tuple):
for sub in dtype:
ret = ret or cls._ischild(sub)
elif isinstance(dtype, type) and issubclass(dtype, (Container, Data, DataRegion)):
elif isinstance(dtype, type) and issubclass(dtype, (Container, Data)):
ret = True
return ret

Expand Down
20 changes: 0 additions & 20 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import types
from abc import abstractmethod
from collections import OrderedDict
from copy import deepcopy
from typing import Type, Optional
Expand Down Expand Up @@ -993,25 +992,6 @@ def _validate_new_data_element(self, arg):
pass


class DataRegion(Data):

@property
@abstractmethod
def data(self):
'''
The target data that this region applies to
'''
pass

@property
@abstractmethod
def region(self):
'''
The region that indexes into data e.g. slice or list of indices
'''
pass


class MultiContainerInterface(Container):
"""Class that dynamically defines methods to support a Container holding multiple Containers of the same type.
Expand Down

0 comments on commit ee32996

Please sign in to comment.