sidpy.hdf.prov_utilsΒΆ

Tools for tracking provenance within HDF5 files

Created on Tue Nov 3 21:14:25 2015

@author: Suhas Somnath, Chris Smith

Functions

assign_group_index

Searches the parent h5 group to find the next available index for the group

check_for_matching_attrs

Compares attributes in the given H5 object against those in the provided dictionary and returns True if the parameters match, and False otherwise

check_for_old

Check to see if the results of a tool already exist and if they were performed with the same parameters.

create_indexed_group

Creates a group with an indexed name (eg - 'Measurement_012') under h5_parent_group using the provided base_name as a prefix for the group's name

create_results_group

Creates a h5py.Group object auto-indexed and named as 'DatasetName-ToolName_00x'

find_results_groups

Finds a list of all groups containing results of the process of name tool_name being applied to the dataset

get_source_dataset

Find the name of the source dataset used to create the input h5_group, so long as the source dataset is in the same HDF5 file :param h5_group: Child group whose source dataset will be returned :type h5_group: h5py.Group