[docs]classExperimentContainer(dict[str,_E]):"""A customized dictionary for storing :class:`~qurry.qurrium.experiment.experiment.ExperimentPrototype`."""__name__="ExperimentContainer"def__init__(self,*args,**kwargs):super().__init__(*args,**kwargs)
[docs]defcall(self,exp_id:str,)->_E:"""Call an experiment by its id. Args: exp_id: The id of the experiment to be called. Returns: ExperimentPrototype: The experiment with the given id. """ifexp_idinself:returnself[exp_id]raiseKeyError(f"Experiment id: '{exp_id}' not found.")