py_experimenter
py_experimenter copied to clipboard
Feature Request: Connect to Running Experiment
Description:
The own_function may consist of several functions, whose execution is split into multiple processes, and while there are mechanisms that one can use to share objects in between different processes, many of them come with significant overhead, making it hard to transfer one instance of ResultProcessor to different processes.
However sharing simple objects (such as integers) between different processes is quite easy. Therefore it would make sense to include the following functionality, where the experiment-id is used in diferent processes.
Functionality
Attach to an allready running experiment., and execute a different own_function on it.
Proposed Solution
Add a function
def attach(self, own_function: Callable, experiment_id: int):
pass
to the PyExperimenter. The PyExperimenter will then execute the new own_function, on the experiment with experiment_id that is allready in status running.