Esempio n. 1
0
    def __init__(self, filename, mode="r", expectedrows=1e6, filters=tables.Filters(complevel=6, complib="zlib"),
                 **kwargs):
        Dataset.__init__(self, os.path.basename(filename))
        tables.File.__init__(self, filename, mode, **kwargs)
        
        self._ds_expectedrows = expectedrows
        self._ds_filters = filters
        if mode == "r":
            self._ds_readonly = True
        else:
            self._ds_readonly = False

        self._ds_toc_cache = None
Esempio n. 2
0
    def __init__(self, filename, mode="r", expectedrows=1e6, filters=tables.Filters(complevel=6, complib="zlib"),
                 **kwargs):
        Dataset.__init__(self, os.path.basename(filename))
        tables.File.__init__(self, filename, mode, **kwargs)
        
        self._ds_expectedrows = expectedrows
        self._ds_filters = filters
        if mode == "r":
            self._ds_readonly = True
        else:
            self._ds_readonly = False

        self._ds_toc_cache = None
Esempio n. 3
0
 def __init__(self, files, maxdepth=1, verbose=False, **kwargs):
     Dataset.__init__(self, "hdf chain <%s>" % str(files))
     HDFChain.__init__(self, files, maxdepth, verbose, **kwargs)
 
     self._ds_readonly = True
     self._ds_toc_cache = None
Esempio n. 4
0
 def __init__(self, files, maxdepth=1, verbose=False, **kwargs):
     Dataset.__init__(self, "hdf chain <%s>" % str(files))
     HDFChain.__init__(self, files, maxdepth, verbose, **kwargs)
 
     self._ds_readonly = True
     self._ds_toc_cache = None