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
MekStoreafter writing to the data store.- Parameters:
source – moveck
data_store, rootdata_group, orpyCGM2.Mek.mek.mekInit.Storage.
- __init__(source)#
Methods
__init__(source)dict:
{environment hash: {pipeline id: parameters}}.open(path[, update])Open a h5 file (
import pyCGM2makes moveck importable).processings([pipeline, environment])List the processings of all trials (same filters as
MekTrial.processings()).query()MekQueryon 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
.c3dextension can be omitted).trial_by_hash(hash)Return the trial with a given hash (or prefix).
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 pyCGM2makes moveck importable).
- processings(pipeline=None, environment=None)#
List the processings of all trials (same filters as
MekTrial.processings()).
- query()#
MekQueryon the whole store.
- summary()#
pandas.DataFrame: One row per (trial, processing), trials without processing included.
- trial(name, hash=None)#
Return a trial from its c3d name (the
.c3dextension 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*").