flowserv.service.postproc.client module

Helper classes for post-processing client that need to access the run results that are included in the result folder that is provided as input to post-processing workflows.

class flowserv.service.postproc.client.Run(run_id, name, files)

Bases: object

Run result object containing the unique run identifier, the run name, and the list of resource files that were generated by the run and that are available to the post-processing workflow.

get_file(name)

Get the path to the run resource file with the given name.

Parameters

name (string) – Unique file name

Return type

string

class flowserv.service.postproc.client.Runs(basedir)

Bases: object

List of run result handles that are available to the post-processing workflow. The order of runs in the list reflects the order in the result ranking.

at_rank(index)

Get result handle for run at the given rank.

Parameters

index (int)

Return type

flowserv.service.postproc.client.Run

get_run(run_id)

Get result handle for the run with the given identifier. Returns None if the run identifier is unknown.

Parameters

run_id (string) – Unique run identifier

Return type

flowserv.service.postproc.client.Run