MekTrial#

class pyCGM2.Mek.mek.mekStore.MekTrial(store, group_name, group)#

A trial (c3d file) stored in Trials/<name>-<hash>.

__init__(store, group_name, group)#

Methods

__init__(store, group_name, group)

documents()

List the document references related to the trial.

environment_hashes()

list of str: Environment hashes of the processings of the trial.

jobs()

list of MekJob: Executions of the pipe on this trial, oldest first.

processing([pipeline, environment, latest])

Return a single processing.

processings([pipeline, environment])

List the processings of the trial, oldest first (those without log first).

query()

MekQuery rooted on the raw trial content (Format/...).

Attributes

measurement_type

path

documents()#

List the document references related to the trial.

Returns:
  • list of dict – path, Id, Type, Signature and relates

  • (``RelatesToKey`` / ``RelatesToValues`` as a dict).

environment_hashes()#

list of str: Environment hashes of the processings of the trial.

jobs()#

list of MekJob: Executions of the pipe on this trial, oldest first.

processing(pipeline=None, environment=None, latest=False)#

Return a single processing.

Parameters:
  • pipeline (str, optional) – Glob on the pipeline id.

  • environment (str, optional) – Environment hash or prefix.

  • latest (bool) – If several match, return the most recently run one instead of raising.

Raises:

LookupError – No match, or several matches and latest is False.

processings(pipeline=None, environment=None)#

List the processings of the trial, oldest first (those without log first).

Parameters:
  • pipeline (str, optional) – Glob on the pipeline id, with or without version (e.g. "maneck.forcePlateTests*").

  • environment (str, optional) – Environment hash or prefix.

query()#

MekQuery rooted on the raw trial content (Format/...).