h5obj.tools
index
/home/djung/lib/h5obj/tools.py

Define tools that use the capabilities of the module "h5obj", hence
recognizing Python objects that have been stored inside HDF5 files using
serialization.

 
Modules
       
cofunc
dummy
fnmatch
glob
h5obj
numpy
os
sys

 
Functions
       
divide(string, char, n)
Divide the string at the n-th occurence of char. Return two strings,
neither including that char.
 
A negative n counts from the back (like normal Python indexing).
 
Example:
>>> divide('a/b/c/d', '/', 1)
('a', 'b/c/d')
h5complete(incompl)
h5cp(source, dest, force=False, recursive=False)
Copy datasets and groups in HDF5 files (or from one HDF5 file to
another).
h5glob(fdpattern, unique=False, sort=False)
Expand a combined filename/dataset pattern. Return list of single
combined filename/dataset paths.
h5glob_filewise(fdpattern, unique=False, sort=False)
Expand a combined filename/dataset pattern. Return list of new combined
filename/dataset patterns, on per file (only dataset part remains a
pattern).
h5ll(fdpath)
List contents of HDF5 files (and groups), along with some information.
Expect combined filename/dataset path. Return dict of dict.
h5load(fdpath, dtype=False, dlen=False, x=False, y=False, attrs=False, item=None, call=None, dmax=False, dmin=False, var=False, stderr=False)
Load a dataset from a HDF5 file.
h5ls(fdpath)
List contents of HDF5 files (and groups). Expect combined
filename/dataset path. Return list of dataset/group names.
h5mkgrp(fdpath)
Create groups in HDF5 files.
h5mv(source, dest, recursive=False)
Move (rename) datasets in HDF5 files (or from one HDF5 file to
another).
h5rm(fdpattern, force=False, recursive=False)
Remove datasets from HDF5 files.
h5rmgrp(fdpattern, ignore_fail_on_non_empty=False)
Remove empty groups from HDF5 files.
h5save(fdpath, data=None, force=False)
Save a dataset to a HDF5 file.
h5split(pattern)
Split a combined filename/dataset pattern into the filename part and the
dataset part. Return filename pattern and dataset pattern. The given
pattern must contain at least one slash that devides the filename part from
the dataset part.

 
Data
        __created__ = '2013-07-08'
__modified__ = '2014-03-21'
optdoc = {'force': 'overwrite existing datasets', 'recursive': 'copy groups recursively'}