pyUSID.io.hdf_utils.base

Simple yet handy HDF5 utilities, independent of the USID model

Created on Tue Nov 3 21:14:25 2015

@author: Suhas Somnath, Chris Smith

Functions

get_attr(h5_object, attr_name)

Returns the attribute from the h5py object

get_attributes(h5_object[, attr_names, strict])

Returns attribute associated with some DataSet.

get_auxiliary_datasets(h5_object[, …])

Returns auxiliary dataset objects associated with some DataSet through its attributes.

get_h5_obj_refs(obj_names, h5_refs)

Given a list of H5 references and a list of names, this method returns H5 objects corresponding to the names

is_editable_h5(h5_obj)

Returns True if the file containing the provided h5 object is in w or r+ modes

link_h5_obj_as_alias(h5_main, h5_ancillary, …)

Creates Dataset attributes that contain references to other Dataset Objects.

link_h5_objects_as_attrs(src, h5_objects)

Creates Dataset attributes that contain references to other Dataset Objects.

print_tree(parent[, rel_paths, main_dsets_only])

Simple function to recursively print the contents of an hdf5 group

validate_h5_objs_in_same_h5_file(h5_src, …)

Checks if the provided objects are in the same HDF5 file.

write_book_keeping_attrs(h5_obj)

Writes basic book-keeping and posterity related attributes to groups created in pyUSID such as machine id, pyUSID version, timestamp.

write_simple_attrs(h5_obj, attrs[, …])

Writes attributes to a h5py object