Example #1
0
    def __init__(self, dataset, shape=None, dtype=None, maxshape=None, attrs={}, parent=None):
        '''
        '''
        super(lazyarray, self).__setattr__('attrs', _ldict(attrs, lock=True))
        self.__data = dataset

        if shape is None:
            shape = tuple(dataset.getShape())
        self.__shape = shape
        self.rank = len(shape)

        if dtype is None:
            if isinstance(dataset, _lds) or isinstance(dataset, _ds):
                dtype = _getdtypefromjdataset(dataset)
        self.__dtype = dtype

        if maxshape is None:
            maxshape = shape
        self.__maxshape = maxshape
Example #2
0
 def __init__(self, attrs={}, parent=None):
     '''
     '''
     self.attrs = _ldict(attrs, lock=True)
     self.__parent = parent
Example #3
0
 def __init__(self, attrs={}, parent=None):
     '''
     '''
     super(HDF5node, self).__setattr__('attrs', _ldict(attrs, lock=True))
     super(HDF5node, self).__setattr__('__parent', parent)
Example #4
0
 def __init__(self, attrs={}, parent=None):
     '''
     '''
     super(HDF5node, self).__setattr__('attrs', _ldict(attrs, lock=True))
     super(HDF5node, self).__setattr__('__parent', parent)
Example #5
0
 def __init__(self, attrs={}, parent=None):
     """
     """
     super(HDF5node, self).__setattr__("attrs", _ldict(attrs, lock=True))
     super(HDF5node, self).__setattr__("__parent", parent)