Provenance#

Module implemented by José Enrique Ruiz to capture the provenance of the LSTOSA analysis products.

Reference/API#

osa.provenance.capture Module#

Provenance capture functions.

Functions#

trace(func)

Trace and capture provenance info inside a method /function.

get_file_hash(str_path[, buffer, method])

Helper function that returns hash of the content of a file.

get_activity_id()

osa.provenance.io Module#

Provenance i/o conversion functions.

Functions#

provlist2provdoc(provlist)

Convert a list of provenance dictionaries to a provdoc W3C PROV compliant structure.

provdoc2graph(provdoc, filename, fmt)

Create a graph of a provenance workflow session.

provdoc2json(provdoc, filename)

read_prov([filename, start, end])

Read a list of provenance dictionaries from the logfile.

osa.provenance.utils Module#

Utility functions for OSA pipeline provenance.

Functions#

parse_variables(class_instance)

Parse variables needed in model

get_log_config()

Get logging configuration from provenance logger config file.