MekStore#

class pyCGM2.Mek.mek.mekStore.MekStore(source)#

Entry point to navigate a moveck pipe store from trial (c3d) names.

The store reads the file structure once (runs are cached): create a new MekStore after writing to the data store.

Parameters:

source – moveck data_store, root data_group, or pyCGM2.Mek.mek.mekInit.Storage.

__init__(source)#

Methods

__init__(source)

environments()

dict: {environment hash: {pipeline id: parameters}}.

open(path[, update])

Open a h5 file (import pyCGM2 makes moveck importable).

processings([pipeline, environment])

List the processings of all trials (same filters as MekTrial.processings()).

query()

MekQuery on the whole store.

runs()

list of MekRun: Pipe executions, oldest first.

summary()

pandas.DataFrame: One row per (trial, processing), trials without processing included.

trial(name[, hash])

Return a trial from its c3d name (the .c3d extension can be omitted).

trial_by_hash(hash)

Return the trial with a given hash (or prefix).

trial_names()

list of str: c3d names of the stored trials.

trials([pattern])

List the trials, optionally filtered by a glob on the c3d name (e.g. "jump*").

environments()#

dict: {environment hash: {pipeline id: parameters}}.

classmethod open(path, update=False)#

Open a h5 file (import pyCGM2 makes moveck importable).

processings(pipeline=None, environment=None)#

List the processings of all trials (same filters as MekTrial.processings()).

query()#

MekQuery on the whole store.

runs()#

list of MekRun: Pipe executions, oldest first.

summary()#

pandas.DataFrame: One row per (trial, processing), trials without processing included.

trial(name, hash=None)#

Return a trial from its c3d name (the .c3d extension can be omitted).

Parameters:
  • name (str) – c3d file name.

  • hash (str, optional) – Trial hash or prefix, needed if the same c3d name was imported several times (modified file).

Raises:

LookupError – Unknown name, or ambiguous name without hash.

trial_by_hash(hash)#

Return the trial with a given hash (or prefix).

trial_names()#

list of str: c3d names of the stored trials.

trials(pattern=None)#

List the trials, optionally filtered by a glob on the c3d name (e.g. "jump*").