ExperimentCombinator
: Building experiments from experiments¶
-
class
epyc.
ExperimentCombinator
(ex: epyc.experiment.Experiment)¶ Bases:
epyc.experiment.Experiment
An experiment that wraps-up another, underlying experiment. This is an abstract class that just provides the common wrapping logic.
Experiment combinators aren’t expected to have parameters of their own: they simply use the parameters of their underlying experiment. They may however give rise to metadata of their own, and modify the results returned by running their underlying experiment.
Accessing the underlying experiment¶
-
ExperimentCombinator.
experiment
() → epyc.experiment.Experiment¶ Return the underlying experiment.
Returns: the underlying experiment
-
ExperimentCombinator.
set
(params: Dict[str, Any]) → epyc.experiment.Experiment¶ Set the parameters for the experiment, returning the now-configured experiment.
Parameters: params – the parameters Returns: the experiment combinator itself
-
ExperimentCombinator.
parameters
() → Dict[str, Any]¶ Return the current experimental parameters, taken from the underlying experiment.
Returns: the parameters,