def setUp(self): self.dset = self.getDataset() self.wrapper = HDMFDataset(self.dset)
from functools import partial from hdmf.utils import call_docval_func, docval, popargs, getargs from hdmf.backends.hdf5 import HDF5IO as _HDF5IO from hdmf.build import BuildManager, TypeMap, GroupBuilder, LinkBuilder, DatasetBuilder, ReferenceBuilder from hdmf.query import HDMFDataset from hdmf.query import Array as HDMFArray from hdmf.backends.hdf5.h5_utils import BuilderH5ReferenceDataset, BuilderH5TableDataset, H5SpecReader from hdmf.backends.warnings import BrokenLinkWarning from hdmf.backends.io import UnsupportedOperation from hdmf.spec import NamespaceCatalog from pynwb import get_manager, get_type_map import os from warnings import warn import logging HDMFDataset.register(zarr.Array) from .hdf5zarr import SYMLINK ROOT_NAME = 'root' SPEC_LOC_ATTR = '.specloc' class ZarrSpecReader(H5SpecReader): @docval({'name': 'group', 'type': zarr.Group, 'doc': 'the zarr Group to read specs from'}) def __init__(self, **kwargs): group = getargs('group', kwargs) self._H5SpecReader__group = group super_kwargs = {'source': "%s:%s" % (os.path.abspath(group.file.name), group.name)} call_docval_func(super(H5SpecReader, self).__init__, super_kwargs) self._H5SpecReader__cache = None
def setUp(self): self.m = HDMFDataset(self.getM()) self.n = HDMFDataset(self.getN())